-
An unfortunate consequence of upgrading to the app router for unrelated reasons is that to use Can I still use I'm looking to only do basic locale detection/switching and load translations for each locale on pages/components, etc. If there is a limited approach I can take I'd love to hear about it, as I can't seem to find any in the docs or otherwise. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
How are you hosting your app? E.g. if you self-host a Next.js app via That being said, there is an option to avoid using the middleware with Hope this helps! |
Beta Was this translation helpful? Give feedback.
How are you hosting your app? E.g. if you self-host a Next.js app via
npm start
, the middleware will run locally in Node.js too. Only if you're deploying to a service like Vercel, then the middleware is executed in an edge runtime. Note, however, that your app can still run in Node.js, only the middleware is executed on the edge.That being said, there is an option to avoid using the middleware with
next-intl
.Hope this helps!