Skip to content
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

Not loading .runtime.config.js when using pnpm #438

Closed
andria-dev opened this issue May 10, 2019 · 2 comments
Closed

Not loading .runtime.config.js when using pnpm #438

andria-dev opened this issue May 10, 2019 · 2 comments

Comments

@andria-dev
Copy link

Related issues

[REQUIRED] Version info

node:

v8.16.0

firebase-functions:
^2.3.0

firebase-tools:

6.8.0

I'm using 6.8.0 because firebase functions:shell doesn't work past this version

firebase-admin:
^7.0.0

[REQUIRED] Test case

Here is a repro of this problem. The README file explains how to reproduce it yourself and includes screenshots of the issue failing and it sort of not failing when a fix is introduced.
https://github.com/ChrisBrownie55/firebase-functions-repro

[REQUIRED] Steps to reproduce

[REQUIRED] Expected behavior

I expect the following json value when I set the environment value of "test" to "value". And the extra config variables:

{
  "test": "value",
  "databaseURL": "https://databaseName.firebaseio.com",
  "storageBucket": "projectId.appspot.com",
  "projectId": "projectId"
}

[REQUIRED] Actual behavior

{}

Were you able to successfully deploy your functions?

No error messages at deploy time but I always get FIREBASE_CONFIG environment variable is missing at run time.

@google-oss-bot
Copy link
Collaborator

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information.

@thechenky
Copy link
Contributor

Hi @ChrisBrownie55 to set config variables for your function, please use firebase functions:config:set KEY=VALUE as explained in the Set Environment Configuration docs. Using FIREBASE_CONFIG variable and modifying .runtimeconfig.json file is not a supported way to configure your function. Closing this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants