How to set a .env file path in Nuxt config?

Viewed 878

I'm migrating to Nuxt new runtime config from the @nuxtjs/dotenv module. I tried to follow the official guidelines, but I couldn't find a way to specify the path to my env files and my default .env file isn't loaded at build time.

Is there a way to set a .env file path in nuxt.config.js without using @nuxtjs/dotenv ?

1 Answers
Related