nxtgauge-frontend-solid/src
Rimuru 6666cc5f67 fix(frontend): replace broken file-based API routes with SolidStart middleware
Vinxi 0.5.7 + @solidjs/start 1.3.2 has a build bug where file-based API
routes (src/routes/api/*) are registered in the page router tree but never
mounted as Nitro handlers in the production build, so every /api/* request
returns a framework 404.

Fix: register a SolidStart middleware (src/middleware.ts) via the
middleware config field. The middleware intercepts all /api/* paths and
proxies them to the Rust gateway, bypassing the broken page router.

Covers:
- /api/gateway/* (catch-all proxy to gateway)
- /api/kb/categories
- /api/kb/articles
- /api/kb/articles/:slug

Also tightens the dev-server vite proxy from /api to /api/kb so it
doesn't shadow the new middleware in dev.

Removes the dead src/routes/api/ tree (no longer used).
2026-06-11 15:36:44 +05:30
..
components fix: route client /api/* through /api/gateway/* proxy\n\nLogin, signup, forgot-password, dashboard, contact, help-center, and all dashboard component fetches were calling bare /api/* paths. The SolidStart server has no /api/auth/*, /api/support/*, or /api/kb/* handlers -- only /api/gateway/[...path] proxies to the Rust gateway. So those calls returned HTML (SPA catch-all), the JSON parse threw silently, and the buttons looked dead. Sign In / Sign Up / Forgot Password all appeared to be no-ops.\n\nThis routes every client-side fetch through the existing gateway proxy, matching the pattern already used by src/lib/api.ts.\n\nAlso fixes hardcoded test121 -> test111 in canonical/og:url tags across index, professionals, help-center, and RoleLandingPage. 2026-06-11 14:10:10 +05:30
data feat: improve Help Center UI with mixed dark/light theme and structured content 2026-04-09 21:52:16 +02:00
hooks feat: Add Ask Ash AI credit components 2026-05-29 20:47:15 +05:30
lib fix: route client /api/* through /api/gateway/* proxy\n\nLogin, signup, forgot-password, dashboard, contact, help-center, and all dashboard component fetches were calling bare /api/* paths. The SolidStart server has no /api/auth/*, /api/support/*, or /api/kb/* handlers -- only /api/gateway/[...path] proxies to the Rust gateway. So those calls returned HTML (SPA catch-all), the JSON parse threw silently, and the buttons looked dead. Sign In / Sign Up / Forgot Password all appeared to be no-ops.\n\nThis routes every client-side fetch through the existing gateway proxy, matching the pattern already used by src/lib/api.ts.\n\nAlso fixes hardcoded test121 -> test111 in canonical/og:url tags across index, professionals, help-center, and RoleLandingPage. 2026-06-11 14:10:10 +05:30
routes fix(frontend): replace broken file-based API routes with SolidStart middleware 2026-06-11 15:36:44 +05:30
stories chore: checkpoint workspace updates 2026-04-26 23:58:43 +02:00
test fix: update vitest config and msw v2 API, remove orphaned tests 2026-04-13 01:36:15 +02:00
app.css Update components (CaptchaCanvas, DashboardLayout, MyDashboardPage, PortfolioPage, ProfilePage), form-validation, routes (dashboard, login, signup), app.css, add e2e tests and helpers, add manual test files and config 2026-05-08 15:34:49 +02:00
app.tsx feat: add floating AI chat widget to all pages 2026-04-15 20:03:47 +02:00
entry-client.tsx feat: align solid public pages and auth flows with nextjs parity 2026-03-17 15:35:58 +01:00
entry-server.tsx Refine onboarding UX, role cards, and runtime schema integration 2026-03-22 15:54:12 +01:00
global.d.ts feat(frontend): add solidstart runtime onboarding renderer 2026-03-16 23:46:21 +01:00
middleware.ts fix(frontend): replace broken file-based API routes with SolidStart middleware 2026-06-11 15:36:44 +05:30