-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
[REQUIRED] Environment info
firebase-tools: 11.14.3
Platform: Windows 11
[REQUIRED] Test case
You can clone this repo and start the firebase emulators in it: https://github.com/joaomelo/hot-vue/tree/ec4e3bc8c4da0bffc9b42c6e5e5eecc393676326
[REQUIRED] Steps to reproduce
Clone the repo (I think it will have the same behavior for any project thought), install firebase tools globally, open the windows terminal, and start emulators with firebase --project demo-test emulators:exec "npm run test"
[REQUIRED] Expected behavior
The firebase docs says that "Local Emulator Suite supports emulation of real Firebase projects and demo projects." and that "A demo Firebase project has no real Firebase configuration and no live resources. These projects are usually accessed via codelabs or other tutorials. Project IDs for demo projects have the demo- prefix."
There was not a connection example I was able to find in the docs. Since it mentions only the project name starting with "demo-" as a requirement, the expected behavior I assumed was to pass just the projectID in the code below.
const app = initializeApp({
projectId: "demo-test",
});
const auth = getAuth(app);
const db = getFirestore(app);
[REQUIRED] Actual behavior
The instructions fail and complain about an invalid API key (image below). But how can I have a valid API key if it is a fake demo project?