Skip to content

Commit 2ae1bfb

Browse files
fix: import app in main.py to resolve import issue in vercel
1 parent a98fbac commit 2ae1bfb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import uvicorn
44

5+
from app.core.app import app # noqa: F401
56
from app.core.config import settings
67

78
if __name__ == "__main__":

vercel.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
"version": 2,
33
"builds": [
44
{
5-
"src": "app/core/app.py",
5+
"src": "main.py",
66
"use": "@vercel/python"
77
}
88
],
99
"routes": [
1010
{
1111
"src": "/(.*)",
12-
"dest": "app/core/app.py"
12+
"dest": "main.py"
1313
}
1414
]
1515
}

0 commit comments

Comments
 (0)