How to use nodejs in google firebase hosting service?
UPDATE: It is now possible to host Node.js apps in Firebase Hosting through an integration with Cloud Functions launched in May of 2017. See Connecting Cloud Functions to Firebase Hosting docs for more information.
FYI>>
Firebase is not only for static node js applications, but it also can be used for dynamic node js applications,
https://firebase.google.com/docs/hosting/functions -- refer this for more details
and we need to create an object for an app and make it export as follows and replace firebase.json as follows
var app = express(); exports.app = functions.https.onRequest(app);
firebase.json:
"rewrites": [{ "source":"**", "destination":"app" }]