diff --git a/packages/graphql-mesh/custom-plugins/monitor-envelop.ts b/packages/graphql-mesh/custom-plugins/monitor-envelop.ts index 5ce854e..1506f4a 100644 --- a/packages/graphql-mesh/custom-plugins/monitor-envelop.ts +++ b/packages/graphql-mesh/custom-plugins/monitor-envelop.ts @@ -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