database
Initializes Firebase Realtime Database and makes it available via $fire.database
and $fireModule.database
.
- Type:
Boolean
orObject
- Default:
false
nuxt.config.js
database: {
emulatorPort: 9000,
emulatorHost: 'localhost',
}
emulatorPort
- Type:
Integer
- Default:
null
Sets up useEmulator("localhost", EMULATOR_PORT)
to point to a RealtimeDatabase emulator running locally.
More information in the official Firebase Emulator Docs.
emulatorPort: process.env.NODE_ENV === 'development' ? 9000 : undefined
emulatorHost
- Type:
String
- Default:
localhost
,
Changes the host used for the emulator. Only applies if the emulatorPort is set.
Edit this page on GitHub
Updated at Tue, Mar 23, 2021