mirror of
https://github.com/Twigpine/node-explorer.git
synced 2026-11-10 13:11:36 -10:00
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]>
8 lines
243 B
JSON
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" }
|
|
]
|
|
}
|