You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Should we add the `VueFireFirestoreOptionsAPI` and `VueFireRealtimeDatabaseOptionsAPI` modules?. Pass `true` to add
27
-
* both, or `'firestore'` or `'realtime-database'` to add only one. Pass false to disable.
28
-
* @default false
29
-
*/
30
-
optionsApiPlugin?: boolean|'firestore'|'database'
31
-
32
-
/**
33
-
* Firebase Options passed to `firebase/app`'s `initializeApp()`.
34
-
*/
35
-
config?: FirebaseOptions
36
-
37
-
/**
38
-
* Firebase Admin Options.
39
-
*/
40
-
admin?: {
41
-
/**
42
-
* Firebase Admin Options passed to `firebase-admin`'s `initializeApp()`. Required if you are using the auth, or the
43
-
* app-check module.
44
-
*/
45
-
options?: Omit<AppOptions,'credential'>
46
-
47
-
// TODO: remove, use env variables instead
48
-
/**
49
-
* Firebase Admin Service Account passed to `firebase-admin`'s `initializeApp()`. Required if you are adding an
50
-
* adminConfig.
51
-
* @deprecated use GOOGLE_APPLICATION_CREDENTIALS env variable instead with the service-account JSON content
52
-
*/
53
-
serviceAccount?: string|ServiceAccount
54
-
}
55
-
56
-
/**
57
-
* Enables AppCheck on the client and server. Note you only need to pass the options for the client, on the server,
58
-
* the configuration will be handled automatically.
59
-
*/
60
-
appCheck?: NuxtVueFireAppCheckOptions
61
-
62
-
/**
63
-
* Enables Authentication
64
-
*/
65
-
auth?: boolean
66
-
67
-
/**
68
-
* Controls whether to use emulators or not. Pass `false` to disable emulators. When set to `true`, emulators are enabled when they are detected in the `firebase.json` file. You still need to run the emulators in parallel to your app.
69
-
*/
70
-
emulators?:
71
-
|boolean
72
-
|{
73
-
/**
74
-
* The host for the Firestore emulator. Defaults to `localhost`.
`The "${service}" emulator is enabled but there is no "host" key in the "emulators.${service}" key of your "firebase.json" file. It is recommended to set it to avoid mismatches between origins. Set it to "${defaultHost}".`
`The "${service}" emulator is enabled but there is no "host" or "port" key in the "emulators" key of your "firebase.json" file. You must specify *both*. It will be ignored.`
470
-
)
471
-
returnacc
472
-
}
473
-
acc[service]={ host, port }
474
-
}
475
-
returnacc
476
-
},{}asFirebaseEmulatorsToEnable)
477
-
478
-
// remove the emulator if auth is not enabled
479
-
if(!auth){
480
-
// @ts-expect-error: cannot be deleted without ?: but that creates other errors
481
-
deleteemulatorsToEnable.auth
482
-
}
483
-
484
-
returnemulatorsToEnable
485
-
}
486
-
487
-
/**
488
-
* Extracted from as we cannot install firebase-tools just for the types
0 commit comments