Skip to content

Commit

Permalink
[Fix] Re-enable GQL playground for debugging (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
OustanDing committed Aug 25, 2022
1 parent 1e22c3a commit ba90962
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions lib/graphql/apollo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,12 @@ const schema = applyMiddleware(

export const apolloServer = new ApolloServer({
schema,
playground:
process.env.NODE_ENV === 'development'
? {
settings: {
'schema.polling.enable': false, // Disable infinite schema introspection
'request.credentials': 'include', // Include auth token in requests
},
}
: false,
introspection: process.env.NODE_ENV === 'development',
playground: {
settings: {
'schema.polling.enable': false, // Disable infinite schema introspection
'request.credentials': 'include', // Include auth token in requests
},
},
introspection: process.env.NODE_ENV !== 'production',
context,
});

0 comments on commit ba90962

Please sign in to comment.