Skip to content

Commit a9111cf

Browse files
elzupclaude
andcommitted
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

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

β€Ž.babelrcβ€Ž

Lines changed: 0 additions & 31 deletions
This file was deleted.

β€Ž.eslintrcβ€Ž

Lines changed: 0 additions & 4 deletions
This file was deleted.

β€Ž.github/workflows/netlify.yamlβ€Ž

Lines changed: 0 additions & 33 deletions
This file was deleted.

β€Ž.gitignoreβ€Ž

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
node_modules
2-
.next
2+
dist
3+
*.local
34

4-
public/
5+
# vite-plugin-pwa generated output (built into dist/)
6+
dev-dist
7+
8+
# wrangler local cache
9+
.wrangler

β€Ž.nvmrcβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
14.19.0
1+
22

β€Ž.storybook/main.jsβ€Ž

Lines changed: 0 additions & 8 deletions
This file was deleted.

β€Ž.storybook/preview.jsβ€Ž

Lines changed: 0 additions & 11 deletions
This file was deleted.

β€Žapp/favorite/page.tsxβ€Ž

Lines changed: 0 additions & 12 deletions
This file was deleted.

β€Žapp/head.tsxβ€Ž

Lines changed: 0 additions & 28 deletions
This file was deleted.

β€Žapp/layout.tsxβ€Ž

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
Β (0)