From 6d8a49c62c1cdbc9f9c8efa85a062798808506a5 Mon Sep 17 00:00:00 2001 From: ra0x3 Date: Fri, 20 Dec 2024 19:44:09 -0500 Subject: [PATCH] try updating vercel config (again) --- .gitignore | 1 + api/app.py | 1 + vercel.json | 8 ++------ 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 945974d..76cedfb 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ venv/ *.env flask_session/ .idea/ +.vercel diff --git a/api/app.py b/api/app.py index 44115a0..e73170a 100644 --- a/api/app.py +++ b/api/app.py @@ -56,6 +56,7 @@ endpoint_url=r2_endpoint_url, aws_access_key_id=r2_access_key_id, aws_secret_access_key=r2_secret_access_key, + region_name="auto" ) diff --git a/vercel.json b/vercel.json index 674f7f7..617d020 100644 --- a/vercel.json +++ b/vercel.json @@ -7,19 +7,15 @@ } }, "buildCommand": "yarn --cwd www/libx install && yarn --cwd www/libx build", - "outputDirectory": ".", + "outputDirectory": "www/libx/dist", "rewrites": [ { "source": "/api/(.*)", - "destination": "/api/app.py" + "destination": "/api/app" }, { "source": "/(.*)", "destination": "/www/libx/dist/$1" - }, - { - "source": "/(.*)", - "destination": "/api/app.py" } ] }