Closed mpro-madhu closed 3 years ago
I'm trying to use customEnv approach as per the link https://firebase.nuxtjs.org/guide/options#customenv
But unable to make it work. Inspite of enabling "customEnv" through below line
env: { FIRE_ENV: process.env.FIRE_ENV }
It appears the npm is still taking process.env.NODE_ENV but no process.env.FIRE_ENV.
Anything I'm missing ?
Also , documentation at https://firebase.nuxtjs.org/guide/options#customenv says referring to customEnv,
"If you decide to turn on this option, you need to define process.env.FIRE_ENV in your code"
So, where do I define process.env.FIRE_ENV in my code.
Figured that customEnv to be passed as option to config object. It is working now.
I'm trying to use customEnv approach as per the link https://firebase.nuxtjs.org/guide/options#customenv
But unable to make it work. Inspite of enabling "customEnv" through below line
env: { FIRE_ENV: process.env.FIRE_ENV }
It appears the npm is still taking process.env.NODE_ENV but no process.env.FIRE_ENV.
Anything I'm missing ?
Also , documentation at https://firebase.nuxtjs.org/guide/options#customenv says referring to customEnv,
"If you decide to turn on this option, you need to define process.env.FIRE_ENV in your code"
So, where do I define process.env.FIRE_ENV in my code.