Skip to content

Commit

Permalink
try updating vercel config (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
ra0x3 committed Dec 21, 2024
1 parent 90250f1 commit 6d8a49c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ venv/
*.env
flask_session/
.idea/
.vercel
1 change: 1 addition & 0 deletions api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)


Expand Down
8 changes: 2 additions & 6 deletions vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
}

0 comments on commit 6d8a49c

Please sign in to comment.