Skip to content

Instantly share code, notes, and snippets.

@evdama
Last active July 2, 2019 16:23
Show Gist options
  • Save evdama/93f66d06e9a6eb7239f89e05f938a44e to your computer and use it in GitHub Desktop.
Save evdama/93f66d06e9a6eb7239f89e05f938a44e to your computer and use it in GitHub Desktop.
// @ts-nocheck TODO: remove at some point
// TODO: what todo with those two imports? needed? if so why and how?
//import config from './config';
//import './css/index.css';
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()
.use(
compression( {
threshold: 0
} ),
sirv( 'static', {
dev
} ),
sapper.middleware( {
session: ( req, res ) => {
return {}
}
})
)
.listen( PORT, err => {
if ( err ) console.log( 'error', err );
} );
I get this error when running 'firebase deploy' for this sapper project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment