umanggarg Claude Sonnet 4.6 commited on
Commit
74fbb1a
·
1 Parent(s): 37f1128

fix(vercel): use routes not rewrites — rewrites are GET-only

Browse files

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. ui/vercel.json +4 -3
ui/vercel.json CHANGED
@@ -1,6 +1,7 @@
1
  {
2
- "rewrites": [
3
- { "source": "/api/ph/:path*", "destination": "/api/posthog?path=:path*" },
4
- { "source": "/(.*)", "destination": "/index.html" }
 
5
  ]
6
  }
 
1
  {
2
+ "routes": [
3
+ { "src": "/api/ph/(.*)", "dest": "/api/posthog?path=$1" },
4
+ { "handle": "filesystem" },
5
+ { "src": "/(.*)", "dest": "/index.html" }
6
  ]
7
  }