Skip to content

Commit

Permalink
remove IS_PRODUCTION env var
Browse files Browse the repository at this point in the history
  • Loading branch information
Thierry DEGREMONT committed Sep 16, 2024
1 parent 676edc6 commit d22e760
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/graphql-mesh/custom-plugins/monitor-envelop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ const formatter = (error: GraphQLError, mask: string): GraphQLError => {
};
export default ({ options }): Plugin => {
// not allow by default
// do not enabled allowIntrospection in production
const allowIntrospection = process.env['IS_PROUCTION_ENV'] != 'true' && (options?.introspection?.allow || process.env['ENABLED_INTROSPECTION'] || false)
const allowIntrospection = options?.introspection?.allow || process.env['ENABLED_INTROSPECTION'] || false
// low info in log by default
const resultLogInfoLevel = options?.resultLogInfoLevel ? options.resultLogInfoLevel : "low"
const denyIntrospectionHeaderName = options?.introspection?.denyHeaderName || null
Expand Down

0 comments on commit d22e760

Please sign in to comment.