diff --git a/vercel.json b/vercel.json index a2340233..4b2cfc92 100644 --- a/vercel.json +++ b/vercel.json @@ -2,7 +2,10 @@ "version": 2, "buildCommand": "npm ci && npm run build", "outputDirectory": "dist/spa", - "rewrites": [{ "source": "/(.*)", "destination": "/index.html" }], + "rewrites": [ + { "source": "/api/(.*)", "destination": "/api/$1" }, + { "source": "/(.*)", "destination": "/index.html" } + ], "headers": [ { "source": "/assets/(.*)",