Skip to content

Commit

Permalink
fix(core): Disable graphql playground according to apiOptions setting
Browse files Browse the repository at this point in the history
Fixes #2246
  • Loading branch information
michaelbromley committed Jul 4, 2023
1 parent 95a6a3b commit b9a0200
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/api/config/configure-graphql-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ async function createGraphQLOptions(
new IdCodecPlugin(idCodecService),
new TranslateErrorsPlugin(i18nService),
new AssetInterceptorPlugin(configService),
ApolloServerPluginLandingPageGraphQLPlayground(),
...(options.playground ? [ApolloServerPluginLandingPageGraphQLPlayground()] : []),
...configService.apiOptions.apolloServerPlugins,
],
validationRules: options.validationRules,
Expand Down

0 comments on commit b9a0200

Please sign in to comment.