v1.2.0
⚠️ Important ⚠️
In order to make a new feature possible (see below) we had to restructure nuxt-fire options in nuxt.config.js
just a little bit. Make sure to change yours accordingly:
OLD:
modules: [
[
'nuxt-fire',
{
config: {
apiKey: '<apiKey>',
authDomain: '<authDomain>',
databaseURL: '<databaseURL>',
projectId: '<projectId>',
storageBucket: '<storageBucket>',
messagingSenderId: '<messagingSenderId>'
},
devConfig: { ... }
}
]
]
NEW:
modules: [
[
'nuxt-fire',
{
config: {
production: {
apiKey: '<apiKey>',
authDomain: '<authDomain>',
databaseURL: '<databaseURL>',
projectId: '<projectId>',
storageBucket: '<storageBucket>',
messagingSenderId: '<messagingSenderId>'
},
development: { ... }
}
}
]
],
✨ New Features
- customEnv Mode:
Sick of relying on NODE_ENV? Want to define more than just two different Firebase configs? EntercustomEnv=true
! Just define a new environment variableFIRE_ENV
and name your configs after the value of that variable. You can find more information on how to implement in our docs.
☘️ Small Improvements
- Build error's are now displayed in red.