Add Vercel config with SPA rewrites and API proxy
cgen-1294a9d6167040e08255d6f3b0404738
This commit is contained in:
parent
0d41408ce0
commit
bb4905b256
1 changed files with 5 additions and 2 deletions
|
|
@ -1,6 +1,9 @@
|
|||
{
|
||||
"version": 2,
|
||||
"buildCommand": "npm ci && npm run build",
|
||||
"outputDirectory": "dist",
|
||||
"rewrites": [
|
||||
{ "source": "/api/(.*)", "destination": "/api/$1" },
|
||||
{ "source": "/(.*)", "destination": "/index.html" }
|
||||
{ "source": "/api/:path*", "destination": "https://e7c3806a9bfe4bdf9bb8a72a7f0d31cd-324f24a826ec4eb198c1a0eef.fly.dev/api/:path*" },
|
||||
{ "source": "/(.*)", "destination": "/" }
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue