-
Notifications
You must be signed in to change notification settings - Fork 994
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GQL Playground: Only run in dev mode #1655
Conversation
@@ -95,7 +95,7 @@ export const createGraphQLHandler = ({ | |||
onHealthCheck, | |||
...options | |||
}: GraphQLHandlerOptions = {}) => { | |||
const isDevEnv = process.env.NODE_ENV !== 'production' | |||
const isDevEnv = process.env.NODE_ENV === 'development' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought about adding || process.env.NODE_ENV === 'test'
as well, but the playground isn't needed when running tests, right? And neither is introspection I guess. Maybe we want debug. What do you all think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔥 nice job Tobbe!
This is great! 🎉thanks @Tobbe |
Fixes #1591