I would like to add some backend functionality for payment option for my small Firebase web app. My project has the following structure.
project
| functions (cloud functions here)
| --server.js
| static (all JavaScript files for frontend, css, images)
| --style.css
| --index.js
| --images
| index.html
| other HTML files
Here is what I have inside my server.js
file. I am getting net::ERR_ABORTED 404 (Not Found)
for all my JavaScript files. What should I do here?
const express = require('express');
const app = express();
app.set('view engine', 'ejs');
app.use(express.static('../../project'));
I noticed the following two possible posts that might help me, I tried some top answers from there but still stuck, do not actually understand where is the problem and what has to be done.