nuxtjs/i18n Not generating index in ‘'prefix’' mode
nuxtjs/i18n during prerender with 'npm run generate' fails to generate index with redirect to 'defaultLocal'


2 Replies
Hi @Encor. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
I'm sorry, but the knowledge sources provided do not contain explicit information about the specific issue of Nuxt's @nuxtjs/i18n module not generating an index file with a redirect to the default locale when using the 'prefix' strategy during prerendering (with
npm run generate
).
There are related discussions about i18n configuration, browser language detection, and custom routing, but none directly address the automatic generation of an index file that redirects to the default locale in 'prefix' mode during static site generation or prerendering. If you need this behavior, you may need to look for additional documentation or open an issue on the Nuxt or @nuxtjs/i18n repositories for further guidance.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------<@268446663708901377> Kapa.ai is still learning and improving, please let me know how I did by reacting below.