-
Notifications
You must be signed in to change notification settings - Fork 201
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
Unable to use .env variable in functions for database.instance() #1058
Comments
I found a few problems with this issue:
|
Other issues that touches on this problem: firebase/firebase-tools#4361 Pasting a response I posted in another issue:
Since this is a common point of confusion, I'm going to try to consolidate our response in a single issue. Arbitrary going to pick the earliest reported issue (#1044) as our single source of truth. Let's continue our discussion there. |
See #1084 for our plans around this area. |
Version info
node: 16.14.0
firebase-functions: 3.18.1
firebase-tools: 10.2.2
firebase-admin: 10.0.2
Test case
Expected behavior
Function should use the .env variable set in .env file.
Actual behavior
If I set the instance without a .env variable, the function can be deployed.
If I set the instance with a .env, I get an error.
Were you able to successfully deploy your functions?
The text was updated successfully, but these errors were encountered: