replace Start prerender with Vite SPA
CI / Typecheck, test & build (push) Successful in 3m54s
CI / Deploy to Cloudflare Workers (push) Successful in 1m51s

This commit is contained in:
2026-08-31 01:28:48 +08:00
parent 848de4e309
commit 6932906327
10 changed files with 58 additions and 513 deletions
+3 -6
View File
@@ -2,13 +2,10 @@
"$schema": "./node_modules/wrangler/config-schema.json",
"name": "gig-admin",
"compatibility_date": "2026-07-15",
// Assets-only Worker: gig-admin is a client-rendered SPA (see vite.config.ts
// `spa: { enabled: true }`), so there is no server to run — Cloudflare just
// serves the static build and falls back to the SPA shell for client routes.
// `pnpm cf:build` copies the TanStack Start shell to index.html, which
// `single-page-application` handling serves for any non-asset request.
// Assets-only Worker: gig-admin is a client-rendered SPA, so Cloudflare
// serves the Vite build and falls back to index.html for client routes.
"assets": {
"directory": "dist/client",
"directory": "dist",
"not_found_handling": "single-page-application"
},
"observability": {