Skip to content

Commit 728f811

Browse files
committed
feat(emulators): extra logs to warn user
1 parent bfd93bc commit 728f811

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

packages/nuxt/src/runtime/emulators/auth.plugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export default defineNuxtPlugin((nuxtApp) => {
2020
const port = vuefire?.emulators?.auth?.port
2121

2222
if (!host || !port) {
23+
logger.warn('Auth emulator not connected, missing host or port')
2324
return
2425
}
2526

packages/nuxt/src/runtime/emulators/database.plugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export default defineNuxtPlugin((nuxtApp) => {
2020
const port = vuefire?.emulators?.database?.port
2121

2222
if (!host || !port) {
23+
logger.warn('Database emulator not connected, missing host or port')
2324
return
2425
}
2526

packages/nuxt/src/runtime/emulators/firestore.plugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export default defineNuxtPlugin((nuxtApp) => {
2020
const port = vuefire?.emulators?.firestore?.port
2121

2222
if (!host || !port) {
23+
logger.warn('Firestore emulator not connected, missing host or port')
2324
return
2425
}
2526

packages/nuxt/src/runtime/emulators/functions.plugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export default defineNuxtPlugin((nuxtApp) => {
2020
const port = vuefire?.emulators?.functions?.port
2121

2222
if (!host || !port) {
23+
logger.warn('Functions emulator not connected, missing host or port')
2324
return
2425
}
2526

packages/nuxt/src/runtime/emulators/storage.plugin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export default defineNuxtPlugin((nuxtApp) => {
2020
const port = vuefire?.emulators?.storage?.port
2121

2222
if (!host || !port) {
23+
logger.warn('Storage emulator not connected, missing host or port')
2324
return
2425
}
2526

0 commit comments

Comments
 (0)