NuxtN
Nuxt8mo ago
20 replies
Thick Black W

.env file not working in production build

This is my first nuxt project. The .env file isn't being passed to the production build. From what I understood, I have to map the .env manually to the nuxt.config, is that correct? Also I set the NITRO_PORT in .env and that isn't passed either.
Was this page helpful?