Fix vercel.json rewrites to exclude API routes
cgen-216865069b9a4300bf74ef7162a98b48
This commit is contained in:
parent
8931e66bdf
commit
bdd584e96a
1 changed files with 12 additions and 0 deletions
12
vercel.json
12
vercel.json
|
|
@ -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" },
|
||||
|
|
|
|||
Loading…
Reference in a new issue