Repository navigation
Conversation
docs/wrangler.jsonc serves the VitePress build as Workers static assets with no Worker script: cleanUrls pages through auto-trailing-slash and the site's own 404 page. Wrangler is a docs devDependency, workerd's install script is allowed, and make docs-deploy builds and deploys. The account comes from the login, or from CLOUDFLARE_ACCOUNT_ID, so no account ID is committed.
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.
Problem
The docs site had no deployment. GitHub Pages builds through Actions, and Actions is blocked by the account's billing lock.
Solution
The docs are deployed as Cloudflare Workers static assets, straight from a local machine. They're live at https://codemode-docs.itnoobz.workers.dev.
docs/wrangler.jsonc: a static-assets-only Worker with no script.html_handling: auto-trailing-slashserves VitePresscleanUrlspages, so/quickstartreturnsquickstart.html.not_found_handling: 404-pageuses the site's own 404 page.docsdevDependency, so the version is pinned in the lockfile.workerd's install script is allowed inpnpm-workspace.yaml, which pnpm 11 requires.pnpm --dir docs run deploy(ormake docs-deploy) builds the site and deploys it.CLOUDFLARE_ACCOUNT_IDwhen the login reaches more than one account. No account ID is committed.Verification
wrangler deploy --dry-runread 172 files and found no bindings.wrangler devlocally:/,/quickstart,/approvaland/observabilityreturned 200,/quickstart.htmlredirected (307) to/quickstart, and/nopereturned the site's 404.5766f75f. The same routes, plus/sourcesand/types, gave the same results on the live site, and the stylesheet loads.docsjob'spnpm install --frozen-lockfileuses the updated lockfile.