diff --git a/vercel.json b/vercel.json index 591e0569..7686e1e3 100644 --- a/vercel.json +++ b/vercel.json @@ -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": "/" } ] }