Next.js Discord

Discord Forum

Reverse order of rendering page then middleware with i18n enabled

Unanswered
Toyger posted this in #help-forum
Open in Discord
ToygerOP
Hey guys,

I'm experiencing very strange behaviour of rendering order. We have monorepo compiled with turbo on vercel. The repo is working perfectly and now we are starting to implement i18n.

When I turn on i18n configuration in the next.config.js rendering engine on MacOs will reverse order of exection. Based on console.log page is redreded first and then middleware as second. 😱

Any idea what it could cause it? We are on the latest next.js and turbo repo.
  i18n: {
    locales: ['en', 'sk', 'cz'],
    defaultLocale: 'en'
  },

0 Replies