-
Notifications
You must be signed in to change notification settings - Fork 204
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
listParam isn't loaded successfully in the emulator #1605
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
Hello @tzappia. Could you try wrapping the value in |
@exaby73 that works in the emulator, but I'm not willing to try it in production (don't want to break my live deployment!) As noted in the related issues, I expect it to fail in production. |
I did some testing. For the emulator to work with
Like this: EXAMPLE_LIST=["oranges and pears", "apples"] But this style does not work in production. It creates one list item of To make it work in production we need this in the EXAMPLE_LIST=oranges and pears,apples But as the original issue has raised, this format does not work with the emulator. |
Related issues
#1523
[REQUIRED] Version info
node:
v22.8.0
firebase-functions:
5.1.1
firebase-tools:
13.16.0
firebase-admin:
12.4.0
[REQUIRED] Test case
In params.js
In env.local
[REQUIRED] Steps to reproduce
Run a function that uses a listParam, in this case I try to create a user so the beforeUserCreated blocking function is invoked.
[REQUIRED] Expected behavior
console log shows "My list [something, somethingElse]"
[REQUIRED] Actual behavior
Were you able to successfully deploy your functions?
I was able to successfully deploy and the listParam seems to work fine in a production environment. Is the emulator parsing the .env file differently in the emulator vs. production? Seems to be a similar behaviour in the linked bug report that was closed.
The text was updated successfully, but these errors were encountered: