Skip to content

Add experimental badge-test worker#828

Open
aron-cf wants to merge 1 commit into
mainfrom
deploy-test
Open

Add experimental badge-test worker#828
aron-cf wants to merge 1 commit into
mainfrom
deploy-test

Conversation

@aron-cf

@aron-cf aron-cf commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Testing to see if multiple deploy-to-cloudflare buttons can exist in a repo


Open in Devin Review

@changeset-bot

changeset-bot Bot commented Jul 20, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 574f285

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

View 2 additional findings in Devin Review.

Open in Devin Review

Comment thread badge-test/wrangler.jsonc
{
"$schema": "node_modules/wrangler/config-schema.json",
"name": "badge-test",
"main": "src/index.js",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 Test worker has no source code, so deployment fails

The worker is configured to start from an entry file ("main": "src/index.js" at badge-test/wrangler.jsonc:8) that does not exist anywhere in the project, so building, running, or deploying the worker fails immediately.
Impact: Anyone clicking the Deploy to Cloudflare button (or running wrangler dev/wrangler deploy) gets an error because the worker has no code to run.

Missing entry point referenced by wrangler config

badge-test/wrangler.jsonc:8 sets "main": "src/index.js", but the badge-test/ directory contains no src/ folder and no index.js. The full file listing is only config files (.editorconfig, .gitignore, .prettierrc, README.md, package-lock.json, package.json, vitest.config.js, wrangler.jsonc). Wrangler resolves main relative to the config file and will fail with an entry-point-not-found error during wrangler dev and wrangler deploy (the scripts defined at badge-test/package.json:6-8). The Deploy to Cloudflare button in badge-test/README.md:1 therefore cannot succeed. Additionally "test": "vitest" has no test files to run.

Prompt for agents
The badge-test worker's wrangler.jsonc sets "main": "src/index.js", but no src/index.js (or any Worker source file) exists in the badge-test/ directory. As a result, wrangler dev, wrangler deploy, and the Deploy to Cloudflare button will all fail because there is no entry point to build. Add a minimal Worker entry file at badge-test/src/index.js that exports a default fetch handler, so the worker can actually be built and deployed. Optionally also add a corresponding test file since package.json defines a "test": "vitest" script that currently has nothing to run.
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant