mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-20 21:45:10 +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';
|
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user