const express = require('express'); const path = require('path'); const app = express(); const port = process.env.PORT || 30040; app.use(express.static(path.join(__dirname, 'dist'))); app.listen(port, () => { console.log(`App listening on port ${port}`) });