How to serve an index.html in react JS in http2.... like below express code
const express = require('express');
const app = express();
app.use(express.static(`${__dirname}/../build`));
app.all('*', (req, res) => {
res.status(200).sendFile(`${__dirname}/../build/index.html`);
});
console.log('server is running')
const port = 2002;
app.listen(port, () => console.info(`app listening to port ${port} `));