mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-12 02:15:17 +00:00
Update server.js
This commit is contained in:
@@ -5,6 +5,9 @@ import serve from 'serve-static';
|
||||
import { routes } from './manifest/server.js';
|
||||
|
||||
polka() // You can also use Express
|
||||
.use(compression({ threshold: 0 }))
|
||||
.use(serve('assets'), sapper({ routes }))
|
||||
.use(
|
||||
compression({ threshold: 0 }),
|
||||
serve('assets'),
|
||||
sapper({ routes })
|
||||
)
|
||||
.listen(process.env.PORT);
|
||||
|
||||
Reference in New Issue
Block a user