nuxt-community / firebase-module

🔥 Easily integrate Firebase into your Nuxt project. 🔥
https://firebase.nuxtjs.org
MIT License
641 stars 98 forks source link

Issues with "customEnv" approach for firebase configurations. #398

Closed mpro-madhu closed 3 years ago

mpro-madhu commented 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.

mpro-madhu commented 3 years ago

Figured that customEnv to be passed as option to config object. It is working now.