From c0d295c78a2556a3c1351ead760e8037aa697946 Mon Sep 17 00:00:00 2001 From: Kentai Radiquum Date: Wed, 15 May 2024 20:32:09 +0500 Subject: [PATCH] fix(vercel/backend): fix vercel backend deploy --- backend/vercel.json | 31 +++++++------------------------ 1 file changed, 7 insertions(+), 24 deletions(-) diff --git a/backend/vercel.json b/backend/vercel.json index cd37f0b..65295de 100644 --- a/backend/vercel.json +++ b/backend/vercel.json @@ -9,30 +9,13 @@ "routes": [ { "src": "/(.*)", - "dest": "main.py" - } - ], - "headers": [ - { - "source": "/(.*)", - "headers": [ - { - "key": "Access-Control-Allow-Credentials", - "value": "true" - }, - { - "key": "Access-Control-Allow-Origin", - "value": "*" - }, - { - "key": "Access-Control-Allow-Methods", - "value": "GET,POST" - }, - { - "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" - } - ] + "dest": "main.py", + "headers": { + "Access-Control-Allow-Credentials": "true", + "Access-Control-Allow-Origin": "*", + "Access-Control-Allow-Methods": "GET,POST", + "Access-Control-Allow-Headers": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version" + } } ] }