Skip to content

Commit

Permalink
fix: only load graphiql when in local environment
Browse files Browse the repository at this point in the history
  • Loading branch information
dleard committed Jul 10, 2020
1 parent 580c391 commit 0c9fd24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ app.prepare().then(() => {
server.use(
postgraphile(pgPool, process.env.DATABASE_SCHEMA || 'ggircs_portal', {
appendPlugins: [PgManyToManyPlugin],
graphiql: true,
graphiql: process.env.IS_LOCAL_ENVIRONMENT === 'true',
classicIds: true,
enableQueryBatching: true,
dynamicJson: true,
Expand Down

0 comments on commit 0c9fd24

Please sign in to comment.