Add Vercel SPA rewrites to serve index.html and use custom 404
cgen-683301d36af143ca9b13b78938070c8e
This commit is contained in:
parent
53f98299e0
commit
13c04f8b2e
1 changed files with 6 additions and 0 deletions
6
vercel.json
Normal file
6
vercel.json
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
{
|
||||||
|
"rewrites": [
|
||||||
|
{ "source": "/api/(.*)", "destination": "/api/$1" },
|
||||||
|
{ "source": "/(.*)", "destination": "/index.html" }
|
||||||
|
]
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue