-
Notifications
You must be signed in to change notification settings - Fork 56
fix(cloud): enable tag-to-deploy for production cloud worker #1735
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,6 +42,7 @@ jobs: | |
| ACCESS_KEY_ID: ${{ vars.ACCESS_KEY_ID }} | ||
| CLOUDFLARE_ACCOUNT_ID: ${{ vars.CLOUDFLARE_ACCOUNT_ID }} | ||
| CLOUDFLARE_DATABASE_ID: ${{ vars.CLOUDFLARE_DATABASE_ID }} | ||
| CLOUDFLARE_ENV: ${{ vars.CLOUDFLARE_ENV }} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This change makes Useful? React with 👍 / 👎.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is intentional — cf-storage-cors is a singleton worker with no per-environment configuration. Its wrangler.toml has no |
||
| FP_ENDPOINT: ${{ vars.FP_ENDPOINT }} | ||
| STORAGE_URL: ${{ vars.STORAGE_URL }} | ||
| run: | | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Environment targeting is still inconsistent across deploy steps.
Line 45 wires
CLOUDFLARE_ENVforcf-d1, butcloud/backend/cf-storage-corsstill deploys with hardcoded--env dev(fromcloud/backend/cf-storage-cors/package.json:1-10). This can produce partial production deploys.Suggested fix
🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Intentionally left as-is. cf-storage-cors is a singleton — its wrangler.toml only defines
[env.dev], no[env.production]. Parameterizing the deploy script would cause it to try--env productionwhich doesn't exist, breaking the deploy. Both environments share the same R2 bucket and route.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jchris, understood — that's a clear and valid reason. Sincecf-storage-corsis intentionally a singleton with only[env.dev]defined in itswrangler.toml, parameterizing the deploy script would break production deploys rather than fix them. I'll note this for future reviews.ʕ •ᴥ•ʔ ← thoughtful rabbit noted!
✏️ Learnings added