Commit c62fe41
authored
Remove unused env var and reorder rewrites (#1069)
<!-- PR title format: type(scope): description — e.g., feat(auth): add
SSO login -->
<!-- Keep the title under 72 characters, use imperative mood, no
trailing period. -->
## Summary
The PostHog reverse-proxy catch-all rewrite (/ingest/:path*) was ordered
before the more specific /ingest/decide and /ingest/static/:path*
rewrites, causing it to swallow those routes. This moves the catch-all
to after the specific rewrites so they match first.
Also removes the unused NEXT_PUBLIC_POSTHOG_HOST env var from .env.
## Verification
- Confirmed rewrite order in next.config.mjs places
/ingest/static/:path* and /ingest/decide before the catch-all
/ingest/:path*
- No build errors introduced
## Reviewer Notes
Next.js rewrites are evaluated top-down and first-match wins. The
catch-all was previously shadowing the specific routes. A comment is
added inline to prevent future reordering.2 files changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
56 | 57 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | 58 | | |
62 | 59 | | |
63 | 60 | | |
64 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
0 commit comments