Skip to content

Commit 1bce4b6

Browse files
author
Luan
committed
chore: prettier
1 parent 385bea0 commit 1bce4b6

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/lib/server.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,8 @@ class Server {
8686
helmetConfig || {
8787
// Needs https running first
8888
hsts: this.env.USE_HTTPS,
89-
// GraphiQL on OSX
90-
contentSecurityPolicy:
91-
process.env.NODE_ENV === 'production'
92-
? undefined
93-
: false,
89+
// GraphQL on OSX
90+
contentSecurityPolicy: this.env.IS_PRODUCTION ? undefined : false,
9491
},
9592
),
9693
);

0 commit comments

Comments
 (0)