Disable GraphiQL for non-production targets (#4802)

This commit is contained in:
Kamil Kisiela 2024-05-23 09:11:58 +02:00 committed by GitHub
parent d486638b9a
commit 6404d4a6f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) => {