From 0f6f8a4c6c7b6822fd513850e2ecf99b4c99d279 Mon Sep 17 00:00:00 2001 From: ajaysi Date: Wed, 8 Oct 2025 17:33:22 +0530 Subject: [PATCH] ALwrity + Wix + Wordpress + GSC integration --- vercel.json | 45 +++++++++++++-------------------------------- 1 file changed, 13 insertions(+), 32 deletions(-) diff --git a/vercel.json b/vercel.json index 182cfcfa..566c9691 100644 --- a/vercel.json +++ b/vercel.json @@ -1,40 +1,21 @@ { "version": 2, - "buildCommand": "cd frontend && npm install && npm run build", - "outputDirectory": "frontend/build", - "framework": null, - "rewrites": [ + "builds": [ { - "source": "/(.*)", - "destination": "/index.html" + "src": "frontend/package.json", + "use": "@vercel/static-build", + "config": { + "distDir": "build" + } } ], - "headers": [ + "routes": [ { - "source": "/(.*)", - "headers": [ - { - "key": "X-Content-Type-Options", - "value": "nosniff" - }, - { - "key": "X-Frame-Options", - "value": "DENY" - }, - { - "key": "X-XSS-Protection", - "value": "1; mode=block" - } - ] - }, - { - "source": "/static/(.*)", - "headers": [ - { - "key": "Cache-Control", - "value": "public, max-age=31536000, immutable" - } - ] + "src": "/(.*)", + "dest": "/frontend/$1" } - ] + ], + "env": { + "REACT_APP_ENVIRONMENT": "production" + } }