Commit f195e1b
fix(vercel): rewrite /ingest/* with trailing slash to PostHog
PostHog's JS SDK POSTs to /ingest/s/, /ingest/e/, /ingest/i/v0/e/ with
trailing slashes. The existing /ingest/:path* rewrite matched only
no-trailing-slash paths, so Vercel served cached 404s for ~27/hr —
540 events in a 20h window, analytics data silently dropped.
Adds :path+/ variant before the :path* rule. Also drops the dead
/ingest/decide rule (already covered by the wildcard).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 8580160 commit f195e1b
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
0 commit comments