Take the playgroundAlways option into account for the graphql playground

This commit is contained in:
Convly 2021-12-22 17:15:46 +01:00
parent fd656a4769
commit 0c558d92fa

View File

@ -57,7 +57,7 @@ module.exports = async ({ strapi }) => {
bodyParserConfig: true,
plugins: [
process.env.NODE_ENV === 'production'
process.env.NODE_ENV === 'production' && !config('playgroundAlways')
? ApolloServerPluginLandingPageDisabled()
: ApolloServerPluginLandingPageGraphQLPlayground(),
],