mirror of
https://github.com/graphql-hive/console
synced 2026-05-23 17:18:23 +00:00
Disable GraphiQL for non-production targets (#4802)
This commit is contained in:
parent
d486638b9a
commit
6404d4a6f5
1 changed files with 1 additions and 4 deletions
|
|
@ -259,10 +259,7 @@ export const graphqlHandler = (options: GraphQLHandlerOptions): RouteHandlerMeth
|
|||
)
|
||||
: {},
|
||||
],
|
||||
/*
|
||||
graphiql: request =>
|
||||
isNonProductionEnvironment ? { endpoint: request.headers.get('x-use-proxy') ?? request.url } : false,
|
||||
*/
|
||||
graphiql: !options.isProduction,
|
||||
});
|
||||
|
||||
return async (req, reply) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue