mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-12 10:25:16 +00:00
18 lines
367 B
JavaScript
18 lines
367 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';
|
|
import App from './App.html';
|
|
|
|
polka() // You can also use Express
|
|
.use(
|
|
compression({ threshold: 0 }),
|
|
serve('assets'),
|
|
sapper({
|
|
routes,
|
|
App
|
|
})
|
|
)
|
|
.listen(process.env.PORT);
|