Firebase Hosting Listening to Cloud Function Instead of Local Function
I have a Firebase project where I use Firebase Cloud Functions with Node.js and Express to host a dynamic website. The project used to work fine. Now, when I run it locally with firebase emulators:start, it listens to the function in the cloud instead of the local function. I get this message in the terminal: [hosting] Rewriting /home to https://us-central1-project-xxx.cloudfunctions.net/app for live Function us-central1/app.
Firebase hosting / failed to deploy with node express server : Unable to find a valid endpoint
I am using firebase functions to build a custom API but I have difficulties to deploy it on firebase hosting.
I have made a simple sample: