Skip to content

Commit 2939ca0

Browse files
committed
fix: restore Python entrypoint + Next.js framework config for Vercel
1 parent 76eef0e commit 2939ca0

4 files changed

Lines changed: 4 additions & 16 deletions

File tree

‎pyproject.toml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ roast = "roast.cli:app"
2525
[tool.pytest.ini_options]
2626
pythonpath = ["."]
2727
testpaths = ["tests"]
28+
29+
[tool.vercel]
30+
entrypoint = "web.api.roast:handler"

‎vercel.json‎

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,5 @@
22
"framework": "nextjs",
33
"buildCommand": "cd web && npm install && npm run build",
44
"outputDirectory": "web/.next",
5-
"installCommand": "cd web && npm install",
6-
"functions": {
7-
"web/api/roast.py": {
8-
"maxDuration": 60
9-
}
10-
},
11-
"rewrites": [
12-
{
13-
"source": "/api/roast",
14-
"destination": "/web/api/roast.py"
15-
},
16-
{
17-
"source": "/api/roast/:path*",
18-
"destination": "/web/api/roast.py"
19-
}
20-
]
5+
"installCommand": "cd web && npm install"
216
}

‎web/__init__.py‎

Whitespace-only changes.

‎web/api/__init__.py‎

Whitespace-only changes.

0 commit comments

Comments
 (0)