Skip to content

Commit

Permalink
vercel deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
VishalS99 committed Sep 22, 2023
1 parent 5710c09 commit bcd0e11
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ env
__pycache__
*/flask_session
*/*.sql
*/build
*/build
.vercel
Binary file modified backend/requirements.txt
Binary file not shown.
2 changes: 1 addition & 1 deletion backend/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

s3 = boto3.client(
"s3",
aws_access_key_id=os.getenv('AWS_ACCESS_KEY'),
aws_access_key_id=os.getenv('AWS_ACCESS_ID_KEY'),
aws_secret_access_key=os.getenv('AWS_SECRET_ACCESS_KEY')
)
ALLOWED_EXTENSIONS = {'png', 'jpg', 'jpeg'}
Expand Down
14 changes: 14 additions & 0 deletions backend/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"builds":[
{
"src": "application.py",
"use": "@vercel/python"
}
],
"routes":[
{
"src":"/(.*)",
"dest":"application.py"
}
]
}

1 comment on commit bcd0e11

@vercel
Copy link

@vercel vercel bot commented on bcd0e11 Sep 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.