Skip to content

feat(website): deploy TanStack Start SSR to Cloudflare Workers - #117

Merged
chenjiahan merged 8 commits into
mainfrom
chenjiahan/website-ssr-workers
Nov 9, 2026
Merged

chenjiahan merged 8 commits into
mainfrom
chenjiahan/website-ssr-workers

Conversation

@chenjiahan

@chenjiahan chenjiahan commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Summary

Move the website from a Pages SPA to TanStack Start SSR on Workers with rsbuild-plugin-cloudflare, preserving rstack.config.ts, the rs commands, and build-time history fetching. Timestamps and the refresh countdown stay empty during SSR and appear in local time after hydration; the timeline still renders initial rows on the server. Configure a root not-found page for unknown paths.

Apply a temporary pnpm patch for development CSS (TanStack/router#8886) and upgrade Rstack to 0.9 / Rsbuild 2.3 for the SSR define fix.

Cloudflare Workers Builds owns builds and deployments. The existing hourly GitHub workflow triggers a Workers Deploy Hook; configure CLOUDFLARE_WORKERS_DEPLOY_HOOK_URL and the build/deploy commands in website/README.md. No additional website CI workflow or smoke-check script is added.

Validate the first Worker deployment before moving the custom domain and disabling Pages Git deployments. This PR does not change dashboard settings or live domains. Workflow changes need no action release or upstream SHA pin updates.

CI setup-node steps read the repository .nvmrc (Node 24.22.0), including all stack build actions, binding preparation, and history updates, to satisfy the new Cloudflare CLI dependency's engine requirement.

Validation

  • pnpm install --frozen-lockfile on Node 24.22.0
  • YAML validation: all 11 setup-node steps use .nvmrc
  • pnpm check
  • pnpm --filter ecosystem-ci-website exec tsc --noEmit
  • pnpm build:website
  • pnpm --filter ecosystem-ci-website deploy:prebuilt --dry-run
  • Local workerd preview: homepage and filtered deep link return SSR rows with empty timestamps; local dates and the refresh countdown appear after hydration, with no browser errors or warnings. Unknown paths return the custom 404 page.

Related links

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T06:53:40.415682Z 958b1eb New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chenjiahan
chenjiahan merged commit ef75fe3 into main Nov 9, 2026
27 of 30 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/website-ssr-workers branch November 9, 2026 07:14
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