We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 780e016 commit eb122b7Copy full SHA for eb122b7
packages/nuxt/src/runtime/admin/plugin.server.ts
@@ -23,9 +23,11 @@ export default defineNuxtPlugin((nuxtApp) => {
23
FIREBASE_PRIVATE_KEY,
24
// set on firebase cloud functions
25
FIREBASE_CONFIG,
26
+ // in cloud functions, we can auto initialize
27
+ FUNCTION_NAME,
28
} = process.env
29
- if (FIREBASE_CONFIG) {
30
+ if (FIREBASE_CONFIG || FUNCTION_NAME) {
31
console.log('[VueFire]: using FIREBASE_CONFIG env variable')
32
initializeApp()
33
} else {
0 commit comments