Fix vercel.json rewrites to exclude API routes

cgen-216865069b9a4300bf74ef7162a98b48
This commit is contained in:
Builder.io 2025-11-16 07:11:37 +00:00
parent 8931e66bdf
commit bdd584e96a

View file

@ -56,13 +56,25 @@
{
"source": "/:path(.*)",
"has": [{ "type": "host", "value": "*.aethex.me" }],
"missing": [{ "type": "header", "key": "x-vercel-rewrite-override" }],
"destination": "/index.html"
},
{
"source": "/:path(.*)",
"has": [{ "type": "host", "value": "*.aethex.space" }],
"missing": [{ "type": "header", "key": "x-vercel-rewrite-override" }],
"destination": "/index.html"
},
{
"source": "/api/:path(.*)",
"has": [{ "type": "host", "value": "*.aethex.me" }],
"destination": "/api/:path"
},
{
"source": "/api/:path(.*)",
"has": [{ "type": "host", "value": "*.aethex.space" }],
"destination": "/api/:path"
},
{ "source": "/", "destination": "/index.html" },
{ "source": "/login", "destination": "/index.html" },
{ "source": "/login/:path*", "destination": "/index.html" },