fix: Account for unset S3 url when starting application

This commit is contained in:
Tom Moor 2019-12-05 12:55:46 -08:00
parent 682151554b
commit 828ce086cc
1 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,6 @@
// @flow
import compress from 'koa-compress';
import { compact } from 'lodash';
import helmet, {
contentSecurityPolicy,
dnsPrefetchControl,
@ -126,11 +127,11 @@ app.use(
styleSrc: ["'self'", "'unsafe-inline'", 'github.githubassets.com'],
imgSrc: ['*', 'data:', 'blob:'],
frameSrc: ['*'],
connectSrc: [
connectSrc: compact([
"'self'",
process.env.AWS_S3_UPLOAD_BUCKET_URL,
'www.google-analytics.com',
],
]),
},
})
);