Repository navigation
Deploy to Cloudflare (Workers static assets) - #62
Open
janispritzkau wants to merge 1 commit into
Open
janispritzkau wants to merge 1 commit into
janispritzkau wants to merge 1 commit into
Conversation
janispritzkau
had a problem deploying
to
preview
November 5, 2026 19:36 — with
GitHub Actions
Failure
Add wrangler.jsonc, cache/security headers, and a CI deploy job: pushes to main deploy, same-repo PRs upload a preview version. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
janispritzkau
force-pushed
the
deploy/cloudflare
branch
from
November 5, 2026 19:48
03c964a to
42280af
Compare
janispritzkau
had a problem deploying
to
preview
November 5, 2026 19:48 — with
GitHub Actions
Failure
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part 3/3 of #54. Based on #61.
wrangler.jsonc: Cloudflare Workers static assets servingdist/public/_headers: immutable caching for/assets/*, nosniff/referrer headers (HTML,service-worker.jsand the manifest keep Cloudflare's default revalidation)deployjob in the CI workflow: pushes tomain→wrangler deploy; same-repo PRs →wrangler versions upload(preview URL). Fork PRs skip it.Before merging (needs your input)
CLOUDFLARE_API_TOKEN(Workers Scripts: Edit) andCLOUDFLARE_ACCOUNT_ID.VITE_API,VITE_GOOGLE_CLIENT_ID,VITE_DISCORD_CLIENT_ID(they're baked in at build time).deployjob fails until 1 is done, and the PR-preview step needs the worker to exist first, so the firstmaindeploy should happen before relying on previews.loopover.xyzis intentionally not enabled; theroutesentry inwrangler.jsoncis commented out.Tested
npm run build && npx wrangler dev:/200, assets getimmutable, 404s for unknown paths, headers applied, SW registers and the game renders in the browser. The deploy job itself is untested (no Cloudflare credentials here).Cloudflare redirects
/oauth-callback.html→/oauth-callbackwith the query string preserved (verified via curl). The callback page only useslocation.search, so the OAuth flow should be unaffected, and registered redirect URIs don't need to change. I couldn't exercise the popup flow end to end.🤖 Generated with Claude Code