-
-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firebase App named '[DEFAULT]' already exists (app/duplicate-app). #54
Comments
@arhoy Did you find a solution ? I am facing the same issue. |
I had the same problem. I created two files with the firebase credentials for prod/dev
I run gatsby develop and the app crashed with the previous error. If you open the gatsby-config file you will see that it has this code in it require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`,
}) That means that you have to pass a NODE_ENV before the gatsby develop command like that:
In this way, it takes the NODE_ENV variable that you pass and it uses the correct env variables from .env.* files. I believe that you can close the issue or maybe we can update the documentation accordingly to make it more clear? |
It works on-the-shelf if you put the credentials in |
I am experiencing the same problem with Firebase and Gatsby, not just this package. I would guess it has something to do with versioning. |
HI, I have done the steps below but run into the following error when I try to sign in or register.
I am not sure what I am doing wrong, I have set up my ENV variables from Firebase and all that.
Thank you
The text was updated successfully, but these errors were encountered: