Skip to content

feat(site): deploy as Cloudflare Worker with Static Assets#3

Merged
bryanfawcett merged 4 commits into
mainfrom
claude/site-worker-deploy
May 25, 2026
Merged

feat(site): deploy as Cloudflare Worker with Static Assets#3
bryanfawcett merged 4 commits into
mainfrom
claude/site-worker-deploy

Conversation

@bryanfawcett
Copy link
Copy Markdown
Contributor

Summary

Deploys the new site package as a Cloudflare Worker with Static Assets instead of Vercel/Pages. The repo's been a workspace since Wave 3 but docs.nyuchi.com was still serving the old Mintlify-on-Vercel site (the new Astro Starlight site had no host at all).

What landed

  • site/wrangler.toml — pure static. [assets] directory = "./dist", not_found_handling = "404-page" so missing routes fall through to Astro's 404 and Pagefind URLs resolve to real files.
  • .github/workflows/deploy-site.yml — push to main on site/** or nyuchi-docs-search/** (since site imports the search package's compiled ./plugin) → build search → build site (with PUBLIC_SHAMWARI_AI_URL set) → wrangler deploy.
  • Workspace bump: site/ adds wrangler ^4.68.1 as a devDependency.

Verified live

Deployed manually before opening this PR. Live at https://nyuchi-docs.nyuchi.workers.dev with all 42 pages + 116 assets. Smoke probe:

  • GET / → 200 (24 KB)
  • GET /platform/quickstart/ → 200
  • GET /nothing → 404 (Astro's 404 page)
  • GET /pagefind/pagefind.js → 200 (45 KB — Pagefind asset)

docs.nyuchi.com cutover (NOT in this PR)

The apex still points at the legacy Mintlify-on-Vercel project (prj_NdMUpHpUIb41Po1H8c6hrChv2bgr, not on the Nyuchi Web Services Vercel team). Cutover is a separate deliberate step — once you give the nod I'll attach docs.nyuchi.com to this worker via the Workers custom-domain API (same path I used for mcp.mzizi.dev — Cloudflare auto-creates the cert + CNAME since nyuchi.com is on the account). The old project keeps its preview URLs alive but stops being authoritative.

The AI Search crawler is currently indexed against docs.nyuchi.com content, which is still the old site. Once the cutover happens, the next crawl picks up the new Astro Starlight content automatically.

https://claude.ai/code/session_01RHdD3m5zeBYmYoUwxLwxKf


Generated by Claude Code

claude added 3 commits May 24, 2026 17:43
site/wrangler.toml declares a pure-static Workers deployment serving
site/dist/ via Workers Static Assets. No worker entry needed — the
Cloudflare-managed asset router handles routing; `not_found_handling =
"404-page"` falls through to Astro's 404.html so missing routes look
right and Pagefind URLs resolve correctly.

deploy-site.yml runs on push to main when site/** or
nyuchi-docs-search/** change. The search package must build first
because site imports its compiled ./plugin entry from dist/. Build sets
PUBLIC_SHAMWARI_AI_URL pointing at the live AI Search proxy worker.

Live: https://nyuchi-docs.nyuchi.workers.dev (42 pages, 116 assets).
Smoke-checked: home / deep routes / 404 / pagefind asset all return
expected status codes against the deployed worker. docs.nyuchi.com cutover
deferred to a separate step — the apex still points at the legacy
Mintlify-on-Vercel project until the cut is made deliberately.

Workspace bump: site/ gains wrangler ^4.68.1 as a devDependency.
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 24, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
nyuchi-docs 8ca5abe Commit Preview URL

Branch Preview URL
May 24 2026, 10:16 PM

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 24, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
shamwari-docs-ai 8ca5abe Commit Preview URL

Branch Preview URL
May 24 2026, 10:16 PM

@bryanfawcett bryanfawcett merged commit 39b1c73 into main May 25, 2026
6 checks passed
@bryanfawcett bryanfawcett deleted the claude/site-worker-deploy branch May 25, 2026 00:22
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.

2 participants