Connect nuxt3 app to firebase emulators
Hi, I'm trying to connect my nuxt app to firebase emulators.
Can you please give me advice on how to do it correctly?
I read this doc
https://firebase.google.com/docs/emulator-suite/connect_auth
I'm using the modular syntax
import { getAuth, connectAuthEmulator } from "firebase/auth";
const auth = getAuth();
connectAuthEmulator(auth, "http://localhost:9099");
Where should I put this?
I attempted in a onMounted() in App.vue it didn't work correctly
Can you please give me advice on how to do it correctly?
I read this doc
https://firebase.google.com/docs/emulator-suite/connect_auth
I'm using the modular syntax
import { getAuth, connectAuthEmulator } from "firebase/auth";
const auth = getAuth();
connectAuthEmulator(auth, "http://localhost:9099");
Where should I put this?
I attempted in a onMounted() in App.vue it didn't work correctly