🔥 Easily integrate Firebase into your Nuxt project. 🔥
MIT License
Bot releases are visible (Hide)
Published by lupas about 5 years ago
$firePerf
.‼️ Important - Breaking Change
You now have to include your appId
in the Firebase config object:
config: {
development: {
...
appId: '<appId>'
},
production: {
...
appId: '<appId>'
}
}
Thanks to @ahmedHusseinF for the pull-request.
Published by lupas over 5 years ago
functionsLocation
to select location for Firebase Functions.Published by lupas over 5 years ago
You can now access all the plain firebase objects like so:
Firebase Obj | Shortcut |
---|---|
firebase.auth | $fireAuthObj |
firebase.database | $fireDbObj |
firebase.firestore | $fireStoreObj |
firebase.storage | $fireStorageObj |
firebase.functions | $fireFuncObj |
firebase.messaging | $fireMessObj |
Published by lupas over 5 years ago
Published by lupas over 5 years ago
Firebase Obj | Shortcut |
---|---|
firebase.auth | $fireAuthObj |
Published by lupas almost 6 years ago
timestampInSnapshot=true
setting for Firestore, which is no longer needed since Firebase SDK version 5.8.0Published by lupas almost 6 years ago
Published by lupas almost 6 years ago
Published by lupas almost 6 years ago
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:
modules: [
[
'nuxt-fire',
{
config: {
apiKey: '<apiKey>',
authDomain: '<authDomain>',
databaseURL: '<databaseURL>',
projectId: '<projectId>',
storageBucket: '<storageBucket>',
messagingSenderId: '<messagingSenderId>'
},
devConfig: { ... }
}
]
]
modules: [
[
'nuxt-fire',
{
config: {
production: {
apiKey: '<apiKey>',
authDomain: '<authDomain>',
databaseURL: '<databaseURL>',
projectId: '<projectId>',
storageBucket: '<storageBucket>',
messagingSenderId: '<messagingSenderId>'
},
development: { ... }
}
}
]
],
customEnv=true
! Just define a new environment variable FIRE_ENV
and name your configs after the value of that variable. You can find more information on how to implement in our docs.Published by lupas almost 6 years ago
NODE_ENV===development
NODE_ENV===development
nuxt-fire is no longer checking for a missing production configPublished by lupas almost 6 years ago
Important bugfix & new way of adding options within nuxt.config.js.
modules: ['nuxt-fire'],
/*
** Nuxt-Fire Module
*/
fire: {
config: {
apiKey: '<apiKey>',
authDomain: '<authDomain>',
databaseURL: '<databaseURL>',
projectId: '<projectId>',
storageBucket: '<storageBucket>',
messagingSenderId: '<messagingSenderId>'
}
}
The other way with the array is of course still supported.
Published by lupas almost 6 years ago
Published by lupas almost 6 years ago
⚠️This is just a barely working example and not fully tested. Please don't use this in production yet.
Published by lupas almost 6 years ago
⚠️This is just a barely working example and not fully tested. Please don't use this in production yet.
Published by lupas almost 6 years ago
Initial release of nuxt-fire.
⚠️This is just a barely working example and not fully tested. Please don't use this in production yet.