Files
node-explorer/vercel.json
Kevin CodexandClaude Fable 5 0253e5c31a Add Vercel rewrites for API proxy and SPA fallback (#6)
The Vite dev proxy (/api, /node-info → node.gitlawb.com) only exists in
the dev server, so the deployed static build 404'd every API call.
vercel.json now mirrors the proxy in production and adds an SPA fallback
so client-side routes survive refresh/deep links. Also ignores the
.vercel project-link directory.

Co-authored-by: Claude Fable 5 <[email protected]>
2026-07-03 09:47:05 +08:00

8 lines
243 B
JSON

{
"rewrites": [
{ "source": "/api/:path*", "destination": "https://node.gitlawb.com/api/:path*" },
{ "source": "/node-info", "destination": "https://node.gitlawb.com/" },
{ "source": "/(.*)", "destination": "/index.html" }
]
}