Express server for serving dist files.

This commit is contained in:
2020-08-26 00:55:54 +02:00
parent 7a10af2012
commit e9a051feec

12
server.js Normal file
View File

@@ -0,0 +1,12 @@
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}`)
});