I already have a Firebase functions that are currently working fine. These functions were deployed when I was using Windows machine. Today I thought to modify something in the functions with my Mac machine. When I am trying to reinitialize the same project, the index.js comes with the default code without my functions that I deployed.
Following are the steps I am performing in order to reinitialize the project.
- firebae init
- Select: Functions: Configure and deploy Cloud Functions
- Use an existing project
- I am selecting my project name
- language: JavaScript
- Do you want to use ESLint to catch probable bugs and enforce style? Yes
- Do you want to install dependencies with npm now? (Y/n) Yes
Now, when I go and check the index.js in the function folder it has only one default code.
const functions = require('firebase-functions');
However, I can see the functions with my custom code at https://console.cloud.google.com/functions.
please help. Thanks for your time and help