NuxtN
Nuxt3y ago
Joni

Nuxt prepare set dotenv path

How do I set the dotenv path for "postinstall": "nuxt prepare?
Doesn't work -> "postinstall": "nuxt prepare --dotenv ../.env"
Picture is right after using npm install, at nuxt.config.ts:32:114 I'm using process.env.PUBLIC_API_BASE_URL which doesn't exist due to not using the right dotenv path...
image.png
Was this page helpful?