Skip to content

Using next-intl with app router without middleware.ts #975

Answered by amannn
Ncookiez asked this question in Q&A
Discussion options

You must be logged in to vote

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!

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Ncookiez
Comment options

@amannn
Comment options

@yordis
Comment options

@amannn
Comment options

@m-sanders
Comment options

Answer selected by Ncookiez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants