Update server.js

This commit is contained in:
Rich Harris
2018-04-01 18:16:39 -04:00
committed by GitHub
parent ab69886a1f
commit 247c3c2dbd

View File

@@ -5,6 +5,9 @@ import serve from 'serve-static';
import { routes } from './manifest/server.js'; import { routes } from './manifest/server.js';
polka() // You can also use Express polka() // You can also use Express
.use(compression({ threshold: 0 })) .use(
.use(serve('assets'), sapper({ routes })) compression({ threshold: 0 }),
serve('assets'),
sapper({ routes })
)
.listen(process.env.PORT); .listen(process.env.PORT);