commit 5639ee68fe7dd81527a2d8603949c4c0b5baf471
parent fe29795f65eeffd1a6428deaea4466df962bceb0
Author: AMIT DUTTA <amitdutta4255@gmail.com>
Date: Tue, 27 Jan 2026 20:59:32 +0530
Add Vercel configuration for rewrites and headers
Diffstat:
1 file changed, 18 insertions(+), 0 deletions(-)
diff --git a/vercel.json b/vercel.json
@@ -0,0 +1,18 @@
+{
+ "version": 2,
+ "rewrites": [
+ { "source": "/api/(.*)", "destination": "/api/index.py" },
+ { "source": "/(.*)", "destination": "/index.html" }
+ ],
+ "headers": [
+ {
+ "source": "/api/(.*)",
+ "headers": [
+ { "key": "Access-Control-Allow-Credentials", "value": "true" },
+ { "key": "Access-Control-Allow-Origin", "value": "*" },
+ { "key": "Access-Control-Allow-Methods", "value": "GET,OPTIONS,PATCH,DELETE,POST,PUT" },
+ { "key": "Access-Control-Allow-Headers", "value": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" }
+ ]
+ }
+ ]
+}