You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Nuxt reads a different env file if value is not found in the configured env file #360
Configure .env and .env.local. In this example, .env refers to the template, .env.local refer to the actual values
Keep the template env property empty
Do not define it in .env.local (let nuxt.config.ts use the default value of runtime config)
Run nuxt with nuxt dev --dotenv .env.local
Nuxt fallbacks on .env file's values if it doesn't find it in the configured env file .env.local
Additional context
I digged a bit and I can't tell whether the issue comes from @nuxt/cli or @nuxt/kit. I noticed sometimes the dotenv property is not passed as a string but casted as a boolean, which makes dotenv load the default env file (.env) instead of the one configured
Activity
bolt-new-by-stackblitz commentedon Mar 13, 2024