fix: Account for unset S3 url when starting application
This commit is contained in:
parent
682151554b
commit
828ce086cc
|
@ -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',
|
||||
],
|
||||
]),
|
||||
},
|
||||
})
|
||||
);
|
||||
|
|
Reference in New Issue