LT
LT
NNuxt
Created by LT on 6/3/2024 in #❓・help
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?
2 replies