Skip to content

Commit

Permalink
ready to deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTraveylan committed Aug 28, 2024
1 parent a2b4d07 commit 1a48af6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ database.db

# pytest
.pytest_cache/

# vercel
.vercel
6 changes: 2 additions & 4 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,12 @@
from app.api.user_information.api import user_information_router
from app.auth.api import auth_router
from app.emailmanager.api import email_router
from app.settings import FRONTEND_URL

app = FastAPI()

origins = [
"http://localhost",
"http://localhost:8080",
"http://localhost:8000",
"http://localhost:3000",
f"{FRONTEND_URL}",
]

app.add_middleware(
Expand Down
14 changes: 14 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"builds": [
{
"src": "app/main.py",
"use": "@vercel/python"
}
],
"routes": [
{
"src": "/(.*)",
"dest": "app/main.py"
}
]
}

0 comments on commit 1a48af6

Please sign in to comment.