blocklist/server.js
Martin Donnelly 6ed24fb4e6 init
2020-07-20 13:37:38 +01:00

17 lines
350 B
JavaScript

const sirv = require('sirv');
const polka = require('polka');
const compress = require('compression')();
// Init `sirv` handler
const assets = sirv('public', {
'maxAge': 31536000, // 1Y
'immutable': true
});
polka()
.use(compress, assets)
.listen(8130, err => {
if (err) throw err;
console.log('> Running on localhost:8989');
});