MUHAMMAD SHAHID RAFI C P
MUHAMMAD SHAHID RAFI C P

Reputation: 1249

Error: Missing expected firebase config value databaseURL, when hit firebase deploy command

Error: Missing expected firebase config value databaseURL, config is actually

{
  "projectId":"app-production",
  "storageBucket":"app-production.appspot.com",
  "locationId":"asia-south1"
}

If you are unit testing, please set process.env.FIREBASE_CONFIG

when hit firebase deploy command

Upvotes: 0

Views: 726

Answers (1)

Frank van Puffelen
Frank van Puffelen

Reputation: 599631

The error message seems pretty clear: you need to add a databaseURL property to your configuration snippet. They are typically of the form app-production.firebaseio.com, so you might want to start with that:

{
  "projectId":"app-production",
  "storageBucket":"app-production.appspot.com",
  "locationId":"asia-south1",
  "databaseURL":"https://app-production.firebaseio.com"
}

Upvotes: 1

Related Questions