0

When initializing a firebase project, it creates a firebase.json file containing settings for hosting, firestore, storage, but nothing for functions. When deploying, the firebase CLI correctly finds the functions. Does the CLI goes through the whole project looking for functions or does it store the functions' folder path somewhere?

Louis Coulet
  • 3,663
  • 1
  • 21
  • 39

1 Answers1

1

The Firebase CLI by default assumes that the Cloud Functions for your projects are in a functions folder under the project folder.

You can override this by specifying a source value in the functions configuration in firebase.json.

Also see Doug's answer here: How to deploy functions from other directory than '/functions'?

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807