mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 10:55:37 +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,
|
||||
|
||||
plugins: [
|
||||
process.env.NODE_ENV === 'production'
|
||||
process.env.NODE_ENV === 'production' && !config('playgroundAlways')
|
||||
? ApolloServerPluginLandingPageDisabled()
|
||||
: ApolloServerPluginLandingPageGraphQLPlayground(),
|
||||
],
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user