Skip to content

Chore: add Worker static assets configuration - #4

Closed
SandObserver wants to merge 1 commit into
mainfrom
chore/worker-static-assets
Closed

SandObserver wants to merge 1 commit into
mainfrom
chore/worker-static-assets

Conversation

@SandObserver

Copy link
Copy Markdown
Owner

Summary

  • Add wrangler.jsonc declaring the built site as a static assets Worker, with
    not_found_handling: "404-page" so unmatched paths serve the generated 404.
  • Ignore .wrangler/ local state.

Cloudflare's Git connection flow now provisions a Worker rather than a Pages
project, and npx wrangler deploy requires this configuration to exist in the
repository.

Testing
npm run check passes. wrangler deploy --dry-run reads 437 files from the
assets directory and reports no bindings.

Checklist

  • npm run build and npm run check both pass.
  • Product UI is shown by running or capturing it, never recreated in CSS.
  • Any new preview or screenshot carries no private hostnames or real data.
  • Visual changes verified in both colour schemes and both docs themes.
  • Links to the app repo still resolve.

Declares the built site as a static assets Worker so a Git-connected build can
deploy it. Unmatched paths serve the generated 404 page.

Verified with a dry run: 437 files read from the assets directory, no bindings.
@SandObserver SandObserver added the github_actions Pull requests that update GitHub Actions code label Aug 23, 2026
@SandObserver

Copy link
Copy Markdown
Owner Author

Not needed. Cloudflare's Pages flow is available and does not read wrangler configuration, so this would be dead config. Revive if the project ever moves to a static assets Worker.

@SandObserver
SandObserver deleted the chore/worker-static-assets branch August 23, 2026 00:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant