vuejs / vuefire

🔥 Firebase bindings for Vue.js
https://vuefire.vuejs.org
MIT License
3.85k stars 332 forks source link

Documentation Request: How to use emulators the correct way #1440

Closed crunchwrap89 closed 11 months ago

crunchwrap89 commented 11 months ago

What problem is this solving

Currently there is no documentation for how to handle the emulators in dev environment correctly.

When starting the dev environment i get a warning saying:

WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials.

i can surpress this with:

    emulators: {
      auth: {
        options: {
          disableWarnings: true,
        },
      },
    },

But i guess that is not safe.

If i replace my domain in the .env variables to localhost, it will not work. So i am not sure how to get this working?

Proposed solution

add documentation regarding emulators in the website: https://vuefire.vuejs.org/nuxt/getting-started.html#Installation

Describe alternatives you've considered

No response

posva commented 11 months ago

Closing in favor of https://github.com/vuejs/vuefire/issues/1429

posva commented 11 months ago

Regarding making it work, I recommend you to give a look at https://vuefire.vuejs.org/nuxt/deployment.html. I added explanations to both examples. You don't have to use the emulators of course and they are always disabled in production