Skip to content

Commit

Permalink
feat(emulators): warn if firebase.json file is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Jul 31, 2023
1 parent b1830a3 commit 06f7d70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/nuxt/src/module/emulators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ export async function willUseEmulators(

// return true if the file doesn't exist instead of throwing
if (await access(firebaseJsonPath, constants.F_OK).catch(() => true)) {
logger.warn(
`The "firebase.json" file doesn't exist at "${firebaseJsonPath}".`
)
return null
}

Expand Down

0 comments on commit 06f7d70

Please sign in to comment.