Commit a9111cf
refactor: migrate Next.js to Vite SPA, deploy on Cloudflare Workers
The app is a pure client-side SPA (static JSON via fetch, localStorage state,
client clock/routing) with no SSR usage. Next.js App Router + static export
was fighting the grain and broke CI; move to a lightweight static SPA served
by Cloudflare Workers static assets.
- Stack: Vite + React + @tanstack/react-router + @tanstack/react-query
- styled-components retained; PWA via vite-plugin-pwa; jest -> vitest
- Drop unmaintained use-seconds (react17 peer) for a local clock hook
- pnpm (Node 22); static data moved to public/static
- Deploy: Cloudflare Workers static assets (wrangler.toml [assets],
not_found_handling=single-page-application); push-triggered via Workers Builds
- Remove Next.js / Netlify / storybook config and dependencies
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 6918dba commit a9111cf
46 files changed
Lines changed: 5976 additions & 17408 deletions
File tree
- .github/workflows
- .storybook
- app
- favorite
- lib
- p/[pid]
- [bid]
- public/static
- src
- components
- App
- routes
- utils
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| 3 | + | |
3 | 4 | | |
4 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments