From e239fe743fc66a8712cf9886d3dfed3cc41fce36 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 13 Feb 2026 22:40:45 +0900 Subject: refactor(frontend): replace React Router BFF with Wouter SPA Remove React Router 7 SSR/BFF architecture (server-side loaders, actions, sessions, remix-auth) and replace with a client-side SPA using Wouter for routing and cookie-based JWT auth. - Replace reactRouter() Vite plugin with @vitejs/plugin-react - Add index.html + app/main.tsx as SPA entry points - Add Wouter routing with auth guards (ProtectedRoute/PublicOnlyRoute) - Add client-side auth (app/auth.ts) and useAuth hook - Migrate all route files to app/pages/ with client-side data fetching - Update NavigateLink and GolfPlayAppGaming to use Wouter Link - Remove .server/, routes/, root.tsx, react-router.config.ts - Clean up tsconfig.json (remove .react-router references) Co-Authored-By: Claude Opus 4.6 --- frontend/.gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend/.gitignore') diff --git a/frontend/.gitignore b/frontend/.gitignore index f6b5418..338b475 100644 --- a/frontend/.gitignore +++ b/frontend/.gitignore @@ -1,6 +1,6 @@ /node_modules/ /.react-router/ -/build/ +/dist/ .env -- cgit v1.3.1 From 9afeaacf7af41a3daac5fa7683043c0952af1250 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 13 Feb 2026 22:48:13 +0900 Subject: refactor(frontend): replace React Router CLI with Vite in build scripts Co-Authored-By: Claude Opus 4.6 --- frontend/.dockerignore | 2 +- frontend/.gitignore | 3 --- frontend/package.json | 9 ++++----- 3 files changed, 5 insertions(+), 9 deletions(-) (limited to 'frontend/.gitignore') diff --git a/frontend/.dockerignore b/frontend/.dockerignore index 072f7f3..c0b2358 100644 --- a/frontend/.dockerignore +++ b/frontend/.dockerignore @@ -1,3 +1,3 @@ -.react-router build +dist node_modules diff --git a/frontend/.gitignore b/frontend/.gitignore index 338b475..6c6badc 100644 --- a/frontend/.gitignore +++ b/frontend/.gitignore @@ -1,6 +1,3 @@ /node_modules/ - -/.react-router/ /dist/ - .env diff --git a/frontend/package.json b/frontend/package.json index 51aaa77..f6988aa 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -4,15 +4,14 @@ "sideEffects": false, "type": "module", "scripts": { - "build": "react-router build", + "build": "vite build", "check": "npm run check:biome && npm run check:ts && npm run check:eslint", "check:biome": "biome check --write", "check:eslint": "eslint --cache --cache-location ./node_modules/.cache/eslint .", - "check:ts": "react-router typegen && tsc --noEmit", - "dev": "react-router dev", + "check:ts": "tsc --noEmit", + "dev": "vite", "openapi-typescript": "openapi-typescript --output ./app/api/schema.d.ts ../openapi/api-server.yaml", - "shiki-codegen": "shiki-codegen --langs php,swift --themes github-light --engine javascript ./app/shiki.bundle.ts", - "start": "react-router-serve ./build/server/index.js" + "shiki-codegen": "shiki-codegen --langs php,swift --themes github-light --engine javascript ./app/shiki.bundle.ts" }, "dependencies": { "@base-ui-components/react": "^1.0.0-alpha.7", -- cgit v1.3.1