File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1- REACT_APP_GRAPHQL_URL = https://graphql.juffalow.com/graphql
1+ REACT_APP_GRAPHQL_URL = https://graphql-api.juffalow.com/graphql
2+ REACT_APP_API_KEY = da2-dn7sjitqirdiff5g2jthgaln6a
Original file line number Diff line number Diff line change 4848 - name : Install dependencies
4949 run : yarn
5050 - name : Build
51+ with :
52+ REACT_APP_GRAPHQL_URL : ${{ secrets.REACT_APP_GRAPHQL_URL }}
53+ REACT_APP_API_KEY : ${{ secrets.REACT_APP_API_KEY }}
5154 run : yarn build
5255 - name : Configure AWS credentials
5356 uses : aws-actions/configure-aws-credentials@v1
Original file line number Diff line number Diff line change @@ -8,10 +8,11 @@ import { RequestParameters } from 'relay-runtime/lib/util/RelayConcreteNode';
88import { Variables } from 'relay-runtime/lib/util/RelayRuntimeTypes' ;
99
1010async function fetchGraphQL ( params : RequestParameters , variables : Variables ) {
11- const response = await fetch ( `https://graphql.juffalow.com/graphql` , {
11+ const response = await fetch ( process . env . REACT_APP_GRAPHQL_URL as string , {
1212 method : 'POST' ,
1313 headers : {
1414 'Content-Type' : 'application/json' ,
15+ 'x-api-key' : process . env . REACT_APP_API_KEY as string ,
1516 } ,
1617 body : JSON . stringify ( {
1718 query : params . text ,
You can’t perform that action at this time.
0 commit comments