Migrating to Svelte User management not done. Footer not done Nav user management icon not positioned correctly
This commit is contained in:
parent
ac83d0702c
commit
a21186f362
55 changed files with 2126 additions and 387 deletions
18
src/server.js
Normal file
18
src/server.js
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import sirv from 'sirv';
|
||||
import polka from 'polka';
|
||||
import compression from 'compression';
|
||||
import * as sapper from '@sapper/server';
|
||||
|
||||
const {PORT, NODE_ENV} = process.env;
|
||||
const dev = NODE_ENV === 'development';
|
||||
|
||||
polka() // You can also use Express
|
||||
.use(
|
||||
compression({threshold: 0}),
|
||||
sirv('static', {dev}),
|
||||
sapper.middleware()
|
||||
)
|
||||
.listen(PORT, err => {
|
||||
if (err) console.log('error', err);
|
||||
});
|
||||
console.log('> DEV: ' + dev.toString())
|
||||
Loading…
Reference in a new issue