Skip to content

Commit

Permalink
fix(nextjs): Rename CLERK_USE_X_FWD_HEADERS to CLERK_TRUST_HOST
Browse files Browse the repository at this point in the history
  • Loading branch information
nikosdouvlis committed Jun 23, 2023
1 parent fe8b3a2 commit 182f30d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .changeset/nice-kangaroos-teach.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
'@clerk/nextjs': patch
---

Support non-Vercel platforms to override hostname of the url to fix the `localhost:3000` redirect from authMiddleware
Support hosting NextJs apps on non-Vercel platforms by constructing req.url using host-related headers instead of using on `req.url` directly. In order to enable this feature, set the `CLERK_TRUST_HOST` env variable to `true`

0 comments on commit 182f30d

Please sign in to comment.