Fix Vercel rewrite rules to properly route API and SPA requests
cgen-92393578c8994082888fbf0b19757b56
This commit is contained in:
parent
8c77584aa1
commit
57c84fc80c
1 changed files with 4 additions and 1 deletions
|
|
@ -34,7 +34,10 @@
|
||||||
"permanent": true
|
"permanent": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"rewrites": [{ "source": "/(?!api).*", "destination": "/index.html" }],
|
"rewrites": [
|
||||||
|
{ "source": "/api/:path*", "destination": "/api/:path*" },
|
||||||
|
{ "source": "/(.*)", "destination": "/index.html" }
|
||||||
|
],
|
||||||
"headers": [
|
"headers": [
|
||||||
{
|
{
|
||||||
"source": "/assets/(.*)",
|
"source": "/assets/(.*)",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue