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