Skip to content

Commit b6419fd

Browse files
committed
refactor: ensure admin is still added
1 parent 64a5e50 commit b6419fd

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

packages/nuxt/src/runtime/admin/plugin.server.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ export default defineNuxtPlugin((nuxtApp) => {
1414

1515
const { firebaseAdmin } = appConfig
1616

17-
// the admin sdk is not always needed, skip if not provided
18-
if (!firebaseAdmin?.config) {
19-
return
20-
}
21-
2217
// only initialize the admin sdk once
2318
if (!getApps().length) {
2419
const {
@@ -61,7 +56,7 @@ You can also set the FIREBASE_CLIENT_EMAIL, FIREBASE_PRIVATE_KEY and FIREBASE_PR
6156

6257
initializeApp({
6358
// TODO: is this really going to be used?
64-
...firebaseAdmin.config,
59+
...firebaseAdmin?.config,
6560
credential,
6661
})
6762
}

0 commit comments

Comments
 (0)