nuxt-modules / i18n

I18n module for Nuxt
https://i18n.nuxtjs.org
MIT License
1.76k stars 484 forks source link

Full server path is leaked/exposed on __NUXT__ through i18n.files #3234

Closed ptdev closed 1 week ago

ptdev commented 1 week ago

Environment

latest nuxt latest nuxt-i18n

Reproduction

Inspect source script tag at bottom of page where NUXT variable is defined

https://stackblitz.com/edit/bobbiegoede-nuxt-i18n-starter-24tx34?file=package.json

Describe the bug

Hi,

When using nuxt-i18n, the module appears to resolve the full path for the language files and add it on the " NUXT " variable.

This leaks the full server path where the app is installed.

Additional context

Some screenshots from the stackblitz and my own project

Image Image

Logs