Localization with a multitenant app using next-intl with i18n routing #1866
shreyailango-waj
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone! I'm using next-intl with i18n routing to localize my application which provides our clients with websites of their own. They all have different subdomains, hence the multitenant application. I was able to run everything locally, the local environment has a url like {subdomain}.localhost:3000/{locale}?branch={id}. the second we deployed it to staging on Vercel where the url is like {subdomain}.app.dev, I run into 500 internal server error or 404 issues with {subdomain}.app.dev/en. The branch id does not get added to the url and I think it's an issue with my middleware.ts but unable to pinpoint the exact issue since everything works locally. I've attached a picture of what my project directory looks like and my middleware.ts. I followed this tutorial - https://next-intl.dev/docs/getting-started/app-router/with-i18n-routing. Been reading several posts here and now I'm not sure whether I should remove the subdomain directory and just keep [locale].
Beta Was this translation helpful? Give feedback.
All reactions