Localization with a multitenant NextJS app.
Unanswered
Albacore posted this in #help-forum
AlbacoreOP
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. If anyone has faced something similar before, please let me know, I will share my middleware.ts file with you and explain the structure more in depth. I've attached a picture of what my project directory looks like. I followed this tutorial - https://next-intl.dev/docs/getting-started/app-router/with-i18n-routing