mirror of
https://github.com/prdlk/leetcode.git
synced 2026-11-04 21:47:38 +00:00
feat(docs): move the site to prdcs.wiki on a Cloudflare Worker
Blume's cloudflare() adapter builds the docs as the prdcs-wiki Worker (apps/docs/wrangler.jsonc: name, prdcs.wiki custom domain), and deploy.yml ships it with wrangler instead of GitHub Pages. The SRS Worker's DOCS_URL / DOCS_ORIGIN, release links and README badge follow the new domain.
This commit is contained in:
1 parent
2835f618aa
commit
dd796acbae
15 files changed
+643
-212
No files matched your search
@@ -0,0 +1,22 @@
|
||||
// Docs Worker — the Blume site, built by `blume build` with the `cloudflare()`
|
||||
// deploy adapter (blume.config.ts) and shipped by `wrangler deploy` from this
|
||||
// directory. Blume's build merges this file into dist/server/wrangler.json
|
||||
// (main, assets, the text/markdown negotiation wrapper) and writes the
|
||||
// .wrangler/deploy/ redirect wrangler follows, so only what Blume cannot
|
||||
// know lives here: the Worker's name and its domain.
|
||||
{
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "prdcs-wiki",
|
||||
"compatibility_date": "2026-08-24",
|
||||
"observability": { "enabled": true },
|
||||
|
||||
// prdcs.wiki is a zone on the same Cloudflare account; `custom_domain`
|
||||
// makes wrangler create the DNS record and certificate on deploy.
|
||||
"routes": [{ "pattern": "prdcs.wiki", "custom_domain": true }],
|
||||
"workers_dev": false,
|
||||
|
||||
// Blume writes every page as <route>/index.html and links it without the
|
||||
// slash; Cloudflare's default would answer `/x` with a 307 to `/x/` on any
|
||||
// path the static layer serves ahead of the Worker.
|
||||
"assets": { "html_handling": "drop-trailing-slash" }
|
||||
}
|
||||
Reference in new issue
Block a user