Last active
July 2, 2019 16:23
-
-
Save evdama/93f66d06e9a6eb7239f89e05f938a44e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @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