Code: Select all
const express = require('express');
const path = require('path');
const app = express();
app.use(express.static(path.join(__dirname, 'dist/atlantis')));
app.use((_, res) => {
res.sendFile(path.join(path.join(__dirname, 'dist/atlantis', 'index.html')));
});
const port = process.env.PORT || 4200;
app.listen(port, () => {
console.log(`Listening on port ${port}`);
});
I have set up an example on https://atlantis-staging.herokuapp.com/ so that the issue can be reproduced. I'm using the latest version of the theme (12). Don't really know what could be wrong.