Skip to content

Deployment fixes: CORS, wrangler vars, CD worker targeting#22

Merged
DIodide merged 5 commits intostagingfrom
feat/deployment
Apr 1, 2026
Merged

Deployment fixes: CORS, wrangler vars, CD worker targeting#22
DIodide merged 5 commits intostagingfrom
feat/deployment

Conversation

@DIodide
Copy link
Copy Markdown
Owner

@DIodide DIodide commented Apr 1, 2026

Summary

Ensures deployment config survives future merges by having it on a PR branch:

  • frontend-cd.yml: use --name flag instead of --env for correct staging/prod worker targeting
  • main.py: CORS origins for harness.nz, staging.harness.nz, and *.workers.dev
  • wrangler.jsonc: public env vars (Convex URL, Clerk publishable key) for both environments

These were already pushed directly to staging as a hotfix but this PR ensures the branch history is clean.

🤖 Generated with Claude Code

DIodide and others added 5 commits March 31, 2026 22:41
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The --env flag doesn't work correctly with the Cloudflare vite plugin.
Use --name harness-web-staging / harness-web instead.
Also add staging vars to wrangler.jsonc (vars are not inherited by envs).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@DIodide DIodide merged commit bb4a282 into staging Apr 1, 2026
1 check passed
@DIodide DIodide deleted the feat/deployment branch April 1, 2026 04:56
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