File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -8,4 +8,5 @@ export default {
8
8
} ,
9
9
GRAPHIQL_PATH : '/graphiql' ,
10
10
GRAPHQL_PATH : '/graphql' ,
11
+ BUNDESTAGIO_SERVER_URL : process . env . BUNDESTAGIO_SERVER_URL || 'http://localhost:3100/graphql' ,
11
12
} ;
Original file line number Diff line number Diff line change @@ -2,11 +2,12 @@ import { ApolloClient } from 'apollo-client';
2
2
import { HttpLink } from 'apollo-link-http' ;
3
3
import { InMemoryCache } from 'apollo-cache-inmemory' ;
4
4
import fetch from 'node-fetch' ;
5
+ import CONSTANTS from '../config/constants' ;
5
6
6
7
const client = new ApolloClient ( {
7
8
link : new HttpLink ( {
8
9
// ssrMode: true,
9
- uri : 'http://localhost:3100/graphql' ,
10
+ uri : CONSTANTS . BUNDESTAGIO_SERVER_URL ,
10
11
fetch,
11
12
} ) ,
12
13
cache : new InMemoryCache ( ) ,
You can’t perform that action at this time.
0 commit comments