mirror of
https://github.com/strapi/strapi.git
synced 2025-11-10 23:29:33 +00:00
Take the playgroundAlways option into account for the graphql playground
This commit is contained in:
parent
fd656a4769
commit
0c558d92fa
2
packages/plugins/graphql/server/bootstrap.js
vendored
2
packages/plugins/graphql/server/bootstrap.js
vendored
@ -57,7 +57,7 @@ module.exports = async ({ strapi }) => {
|
|||||||
bodyParserConfig: true,
|
bodyParserConfig: true,
|
||||||
|
|
||||||
plugins: [
|
plugins: [
|
||||||
process.env.NODE_ENV === 'production'
|
process.env.NODE_ENV === 'production' && !config('playgroundAlways')
|
||||||
? ApolloServerPluginLandingPageDisabled()
|
? ApolloServerPluginLandingPageDisabled()
|
||||||
: ApolloServerPluginLandingPageGraphQLPlayground(),
|
: ApolloServerPluginLandingPageGraphQLPlayground(),
|
||||||
],
|
],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user