Skip to content

website: prerender static pages at build time - #494

Merged
aiktb merged 1 commit into
mainfrom
codex/prerender-website
Sep 26, 2026
Merged

aiktb merged 1 commit into
mainfrom
codex/prerender-website

Conversation

@aiktb

@aiktb aiktb commented Sep 26, 2026

Copy link
Copy Markdown
Owner

The website's pages contain static content, but each direct visit currently invokes the SSR Worker. Enable TanStack Start prerendering so the home and welcome pages are generated at build time and served through Cloudflare Static Assets, avoiding SSR Worker requests for these pages while retaining client-side React interactions and typed routing.

Document the build-time rendering behavior and the existing Worker fallback for unknown paths. The generated welcome page uses /welcome/index.html; Cloudflare redirects /welcome to /welcome/. Unknown paths still invoke the Worker and return the existing 404 page.

Validation:

  • Website production build generated dist/client/index.html and dist/client/welcome/index.html.
  • Local Cloudflare runtime preview returned HTML byte-for-byte identical to the generated files for both pages; an unknown route returned the existing 404 page.
  • Workspace lint and typecheck passed.
  • wrangler deploy --dry-run passed and included the static assets.

No production deployment was performed.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://codex-prerender-website-furigana-maker.ai-ourship.workers.dev (commit 31e6f25)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://41c46bb2-furigana-maker.ai-ourship.workers.dev 31e6f25 2026-09-26T10:17:57.835Z Visit the dashboard ↗

@aiktb
aiktb merged commit 980ef12 into main Sep 26, 2026
6 checks passed
@aiktb
aiktb deleted the codex/prerender-website branch September 26, 2026 10:50
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.

1 participant