0

Setting up the cloud functions emulator required me to export my environment variables. The documentation says to run the below command (powershell) in the functions dir:

firebase functions:config:get | ac .runtimeconfig.json 

Now the emulator gives me a warning:

!  Found .runtimeconfig.json but the JSON format is invalid.

This is .runtimeconfig.json

{
  "slack": {
    "moulding": "<URL>"
  },
  "email": {
    "address": "<MY_EMAIL>",
    "password": "<PASSWORD>"
  }
}

How can I solve this? I'm not sure how the format is invalid since the CLI generated it.

SRR
  • 1,608
  • 1
  • 21
  • 51

1 Answers1

1

Taking a look at this question, someone suggested to use the below command in Command Prompt in the functions dir instead of Powershell

firebase functions:config:get > .runtimeconfig.json

Not sure why the above works, but it does

SRR
  • 1,608
  • 1
  • 21
  • 51