bugfix: in production Playground doesn't load the schema

This commit is contained in:
Sajjad Shirazy 2019-01-08 13:10:18 +03:30 committed by GitHub
parent 8bbccad862
commit 786ccbf7f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,6 +174,7 @@ module.exports = strapi => {
serverParams.playground = {
endpoint: strapi.plugins.graphql.config.endpoint,
};
serverParams.introspection = true;
}
const server = new ApolloServer(serverParams);