I received access to a google firebase project and would like to get the source code of the functions. Is there a way to get to the source of the functions of that project?
CodePudding user response:
Yes you can find your Cloud Functions code in the Google Cloud Platform console (not the Firebase console). As a matter of fact, your Firebase project is also a GCP project.
- Go to https://console.cloud.google.com/functions
- (If necessary, switch to the desired project)
- Open the "Function details" screen by clicking on the Function name
- Click on the "Source" tab
You can either copy/paste the code from the text area or use the "Download zip" button on the top-right corner of the screen.