Skip to content

Commit 6031d63

Browse files
author
Mateu Aguiló Bosch
committed
feat: enable tracing for non-production environments
1 parent 1ad1968 commit 6031d63

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/simpleServerWithContext.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,7 @@ module.exports = async (
3333
additionalSchemaDirectives
3434
),
3535
context,
36+
// This is the same check made by the Apollo Server to enable/disable
37+
// introspection in production.
38+
tracing: process.env.NODE_ENV !== 'production',
3639
});

0 commit comments

Comments
 (0)