Issue with next-intl redirects when using CloudFront as a reverse proxy #2206
Unanswered
FourwingsY
asked this question in
Q&A
Replies: 1 comment 3 replies
-
|
Can you check if your reverse proxy sets |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My project is hosted on Vercel at
project.vercel.app, and I am using CloudFront as a CDN/WAF with a custom domainmyproject.com.The current flow and the issue:
project.vercel.app.project.vercel.app/eninstead of the custom domainmyproject.com/en.It seems
next-intlrelies onrequest.urlfor redirects. Even if I set an environment variable for the base URL, I cannot find a way to force next-intl to use the custom domain for its internal redirect logic.Is there a recommended way to handle redirects when the application is served behind a reverse proxy?
Beta Was this translation helpful? Give feedback.
All reactions