mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-15 19:44:48 +00:00
experimental new structure
This commit is contained in:
@@ -3,11 +3,15 @@ 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 })
|
||||
sapper({
|
||||
routes,
|
||||
App
|
||||
})
|
||||
)
|
||||
.listen(process.env.PORT);
|
||||
|
||||
Reference in New Issue
Block a user