Commit 388a279
fix: move NextAuth routes from /api/auth to /auth/api
DigitalOcean App Platform ingress strips the matched prefix when
forwarding to components. The /api/auth rule stripped the prefix,
causing NextAuth to receive /csrf instead of /api/auth/csrf.
Fix: Move NextAuth route handler to /auth/api/[...nextauth] with
basePath: "/auth/api". This path falls through the web catch-all
without any prefix stripping, and is already covered by the
/auth/ public path in middleware.
Also removes the now-unnecessary /api/auth ingress rule.
Google OAuth redirect URI must be updated to:
https://vibedeploy-7tgzk.ondigitalocean.app/auth/api/callback/google
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent dab9666 commit 388a279
7 files changed
Lines changed: 1868 additions & 7 deletions
File tree
- .do
- claudedocs
- web/src
- app/auth/api/[...nextauth]
- lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 10 | + | |
16 | 11 | | |
17 | 12 | | |
18 | 13 | | |
| |||
Large diffs are not rendered by default.
Large diffs are not rendered by default.
0 commit comments