NuxtN
Nuxt2y ago
1 reply
LT

Accessing PM2 environment variables inside nuxt.config.ts ?

Hi all, I have a PM2 ecosystem file that's defining an APP_ENV=production/staging/development variable.
But when I try to use process.env.APP_ENV==='production' inside nuxt.config.ts the result seems to always be false, even though running "pm2 env N" shows the enviromnent variable is set.
Any suggestions or something obvious I'm missing?
Was this page helpful?