diff --git a/src/simpleServerWithContext.js b/src/simpleServerWithContext.js index 96e7d7f..44557dc 100644 --- a/src/simpleServerWithContext.js +++ b/src/simpleServerWithContext.js @@ -33,4 +33,7 @@ module.exports = async ( additionalSchemaDirectives ), context, + // This is the same check made by the Apollo Server to enable/disable + // introspection in production. + tracing: process.env.NODE_ENV !== 'production', });