Description
Version
@nuxtjs/firebase: 7.3.3
firebase: 8.0.1
nuxt: 2.14.12
Steps to reproduce
Custom environment does not work as expected. I'm unable to build nuxt once and deploy to multiple environments. Follow the steps in the documentation for the customEnv option to reproduce.
https://firebase.nuxtjs.org/guide/options#customenv
Looking into the implementation for the customEnv option, the firebase appConfig gets injected only at build time and not at run time. This is a show stopper for larger projects like the organization I work for.
https://github.com/nuxt-community/firebase-module/blob/dev/lib/plugins/main.js
What is Expected?
Firebase module should behave like @nuxtjs/axios where module configurations get added via nuxt publicRuntimeConfig or privateRuntimeConfig settings. Use the nuxt axios project as a good example to solve build once and deploy to many environment issues.
https://axios.nuxtjs.org/options
https://github.com/nuxt-community/axios-module/blob/a1a189486d63356433c939529d6e631f3fc9f923/lib/plugin.js#L194
What is actually happening?
You have to build for each deployment environment. If you build once and deploy to many environments only one environment can be deployed.