Commit 855e4b2
fix(proxy): use rewrite to route nested API paths to handler
Vercel's catch-all route ([...path].ts) wasn't matching nested paths
like /api/bugzilla/bug/123 when using the Vite framework. Changed to
use explicit rewrite rule that routes all /api/bugzilla/* paths to a
single handler at api/bugzilla.ts.
Also filters out '...path' query param that Vercel adds for catch-all
routes.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent aa4d0d1 commit 855e4b2
2 files changed
+6
-0
lines changedFile renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
5 | 11 | | |
6 | 12 | | |
7 | 13 | | |
| |||
0 commit comments