I have prepared a site using express.js and e.js. When I deploy this site to firebase functions, when I open the url specified in firebase, I get the error "Site not found" and the e.js file is not indexed.
functions/index.js file:
const functions = require("firebase-functions");
const express = require("express");
const cors = require("cors");
const app = express();
app.set('view engine', 'ejs');
app.use(express.static('public'));
app.use(cors());
app.get('/', (req, res) => {
res.render('index.ejs');
});
exports.app = functions.https.onRequest(app);
I tried using firebase hosting and it didn't work