From 2d3c7b0ba4ef5e27b65253244736367a1cf8ff18 Mon Sep 17 00:00:00 2001 From: Shashank Date: Sun, 26 May 2024 05:42:19 +0530 Subject: [PATCH] changed Vercel.json - adding build back, changed routes to rewrites --- vercel.json | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/vercel.json b/vercel.json index ad3963e..7600e84 100644 --- a/vercel.json +++ b/vercel.json @@ -1,13 +1,17 @@ { "version": 2, - "routes": [ - { "handle": "filesystem" }, + "builds": [ { - "src": "/.*", - "dest": "/dist/index.html", - "status": 200 + "src": "package.json", + "use": "@vercel/static-build", + "config": { + "distDir": "dist" + } } ], + "rewrites": [ + { "source": "/(.*)", "destination": "/dist/index.html" } + ], "cleanUrls": true, "trailingSlash": false }