Fix port error when running site locally

pull/5378/head
Ben McCann 5 years ago
parent daa1c390d5
commit ab68f50b86

@ -4,7 +4,7 @@ import sirv from 'sirv';
import * as sapper from '@sapper/server'; import * as sapper from '@sapper/server';
import { sanitize_user, authenticate } from './utils/auth'; import { sanitize_user, authenticate } from './utils/auth';
const { PORT = 3000 } = process.env; const port = process.env.port || 3000;
const app = polka({ const app = polka({
onError: (err, req, res) => { onError: (err, req, res) => {
@ -34,4 +34,4 @@ app.use(
}) })
); );
app.listen(PORT); app.listen(port);

Loading…
Cancel
Save