Fix Vercel routing to exclude API routes from SPA rewrite
cgen-86126cf1871d42acac18809188dbff08
This commit is contained in:
parent
f7dcb66032
commit
fd99f2756e
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@
|
|||
"permanent": true
|
||||
}
|
||||
],
|
||||
"rewrites": [{ "source": "/(.*)", "destination": "/index.html" }],
|
||||
"rewrites": [{ "source": "/(?!api).*", "destination": "/index.html" }],
|
||||
"headers": [
|
||||
{
|
||||
"source": "/assets/(.*)",
|
||||
|
|
|
|||
Loading…
Reference in a new issue