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?
Asked
Active
Viewed 350 times
1 Answers
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
-
Thank you. After Check the mentioned answer there's more to firebase-tools than I thought, it would be great if it had a section in docs/guides. – Louis Coulet Sep 13 '20 at 19:34
-
In that case, this link is probably your new favorite: https://firebase.google.com/docs/cli#the_firebasejson_file :) – Frank van Puffelen Sep 13 '20 at 19:38
-
I have been searching for this property all around.. including firebase docs.... thanks! – Francisco Santorelli Oct 08 '20 at 21:28