Commit 5d4931e
fix(vercel): route requests to the app again after rewrite semantics change
Vercel's builder (CLI 56.5.0 -> 58.1.0) changed internal rewrites in backend
framework projects to route using the rewritten destination path. Every path was
rewritten to /api/index, so FastAPI stopped seeing real paths: each request fell
through to the SPA catch-all and returned the landing page. /app looked like a
dead "Launch Plan-It" button, /health returned HTML, and /css/app.css was served
as text/html.
Vercel now detects this as a FastAPI project on its own, so the rewrites are
redundant as well as harmful. Drop them and pin the entrypoint so detection is
unambiguous between api/index.py and app/main.py.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 4130add commit 5d4931e
2 files changed
Lines changed: 5 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
| 2 | + | |
| 3 | + | |
0 commit comments