Skip to content

Commit 1f1f183

Browse files
committed
bundestagio config url
1 parent 302fa9b commit 1f1f183

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/config/constants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ export default {
88
},
99
GRAPHIQL_PATH: '/graphiql',
1010
GRAPHQL_PATH: '/graphql',
11+
BUNDESTAGIO_SERVER_URL: process.env.BUNDESTAGIO_SERVER_URL || 'http://localhost:3100/graphql',
1112
};

src/graphql/client.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@ import { ApolloClient } from 'apollo-client';
22
import { HttpLink } from 'apollo-link-http';
33
import { InMemoryCache } from 'apollo-cache-inmemory';
44
import fetch from 'node-fetch';
5+
import CONSTANTS from '../config/constants';
56

67
const client = new ApolloClient({
78
link: new HttpLink({
89
// ssrMode: true,
9-
uri: 'http://localhost:3100/graphql',
10+
uri: CONSTANTS.BUNDESTAGIO_SERVER_URL,
1011
fetch,
1112
}),
1213
cache: new InMemoryCache(),

0 commit comments

Comments
 (0)