mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-17 12:24:55 +00:00
realign with 0.15
This commit is contained in:
@@ -2,13 +2,13 @@ import sirv from 'sirv';
|
||||
import polka from 'polka';
|
||||
import sapper from 'sapper';
|
||||
import compression from 'compression';
|
||||
import { routes } from './manifest/server.js';
|
||||
import { manifest } from './manifest/server.js';
|
||||
|
||||
polka() // You can also use Express
|
||||
.use(
|
||||
compression({ threshold: 0 }),
|
||||
sirv('assets'),
|
||||
sapper({ routes })
|
||||
sapper({ manifest })
|
||||
)
|
||||
.listen(process.env.PORT)
|
||||
.catch(err => {
|
||||
|
||||
Reference in New Issue
Block a user