mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-12 02:15:17 +00:00
11 lines
321 B
JavaScript
11 lines
321 B
JavaScript
import polka from 'polka';
|
|
import compression from 'compression';
|
|
import sapper from 'sapper';
|
|
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 }))
|
|
.listen(process.env.PORT);
|