N
Nuxtβ€’4w ago
matthew

nuxt dev doesn't load .env

The docs say:
In addition to any process environment variables, if you have a .env file in your project root directory, it will be automatically loaded at dev, build and generate time.
This appears to not be the case. I have an .env file in the project root directory. If I run nuxt dev, this file is not loaded onto process.env at runtime. πŸ€·β€β™‚οΈ
2 Replies
less
lessβ€’3w ago
have you configure the .env in nuxt.config? or maybe you can run using nuxi dev --dotenv [dotenv file]
Wicker
Wickerβ€’3w ago
Could you provide your nuxt config?
Want results from more Discord servers?
Add your server