From bb4905b256126f5637413ff56d2c3dce4260d035 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sun, 19 Oct 2025 00:30:26 +0000 Subject: [PATCH] Add Vercel config with SPA rewrites and API proxy cgen-1294a9d6167040e08255d6f3b0404738 --- vercel.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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": "/" } ] }