save the server.js change
@@ -57,19 +57,11 @@ const middleware = [cors(corsDelegate), validateJwt];
app.options('*', cors(corsDelegate));
-if (IS_LOCAL) {
app.use('/graphQlEndpoint/graphql', middleware, graphqlHTTP({
schema: schema,
- graphiql: true
- }));
-} else {
- app.use('/graphQlEndpoint/{proxy+}', middleware, graphqlHTTP({
- schema: schema,
- graphiql: false
+ graphiql: IS_LOCAL
}));
-}
-
app.use(function(req, res){
console.warn(req);
console.warn(req.path);
