From d6297f493a5bf3b9560af39962e7d585f6c32e54 Mon Sep 17 00:00:00 2001 From: Kien Dang Date: Wed, 31 Jan 2024 21:03:16 +0800 Subject: [PATCH] Use production distribution of React in GraphiQL (#1243) --- juniper/Makefile | 4 ++++ juniper/src/http/graphiql.html | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/juniper/Makefile b/juniper/Makefile index d04febe0..30ead9e6 100644 --- a/juniper/Makefile +++ b/juniper/Makefile @@ -39,6 +39,10 @@ graphiql: https://raw.githubusercontent.com/graphql/graphiql/graphiql%40$(GRAPHIQL_VER)/examples/graphiql-cdn/index.html $(sed-i) 's|unpkg.com/graphiql/|unpkg.com/graphiql@$(GRAPHIQL_VER)/|g' \ src/http/graphiql.html + $(sed-i) 's|react.development.js|react.production.min.js|g' \ + src/http/graphiql.html + $(sed-i) 's|react-dom.development.js|react-dom.production.min.js|g' \ + src/http/graphiql.html $(sed-i) "s|'https://swapi-graphql.netlify.app/.netlify/functions/index'|JUNIPER_URL|g" \ src/http/graphiql.html $(sed-i) "s|url: JUNIPER_URL,|url: JUNIPER_URL,\n subscriptionUrl: normalizeSubscriptionEndpoint(JUNIPER_URL, JUNIPER_SUBSCRIPTIONS_URL)|" \ diff --git a/juniper/src/http/graphiql.html b/juniper/src/http/graphiql.html index 697e7b8e..8a98b267 100644 --- a/juniper/src/http/graphiql.html +++ b/juniper/src/http/graphiql.html @@ -30,11 +30,11 @@ -->