-
Notifications
You must be signed in to change notification settings - Fork 203
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
Inconsistend behaviour of defineList in deploy/emulator #1523
Comments
I found a few problems with this issue:
|
Hey @dee-gmiterko. It's not recommended to use the value of a param outside of a function. Does this reproduce within a function? If you require to access the value to initialize anything before running the actual functions, you can use the new |
Hey @dee-gmiterko. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 3 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
Since there haven't been any recent updates here, I am going to close this issue. @dee-gmiterko if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this. |
Related issues
[REQUIRED] Version info
node:
v20.10.0
firebase-functions:
4.7.0
firebase-tools:
12.5.2
firebase-admin:
12.0.0
[REQUIRED] Test case
index.js
.env
listParam.value()
returns["a", "b", "c"]
['["a"', '"b"', '"c"]']
not parsing JSON, but splitting on commas[REQUIRED] Expected behavior
To have
defineList
behavior be consistent across emulator and production, and documented.[REQUIRED] Actual behavior
defineList
parses value in .env file differently causing it to became['["a"', '"b"', '"c"]']
.Were you able to successfully deploy your functions?
Yes, but behaves unexpectedly.
The text was updated successfully, but these errors were encountered: