Try to fix client endpoint env var
This commit is contained in:
parent
50bdc86ab0
commit
d6366f8467
2
ui/.env
2
ui/.env
|
@ -1 +1 @@
|
||||||
REACT_APP_GRAPHQL_URI=http://localhost:4001/graphql
|
GRAPHQL_ENDPOINT=http://localhost:4001/graphql
|
|
@ -2,7 +2,7 @@
|
||||||
FROM node:10
|
FROM node:10
|
||||||
|
|
||||||
ARG GRAPHQL_ENDPOINT
|
ARG GRAPHQL_ENDPOINT
|
||||||
ENV REACT_APP_GRAPHQL_URI=${GRAPHQL_ENDPOINT}
|
ENV GRAPHQL_ENDPOINT=${GRAPHQL_ENDPOINT}
|
||||||
|
|
||||||
RUN mkdir -p /app
|
RUN mkdir -p /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
client: {
|
client: {
|
||||||
service: {
|
service: {
|
||||||
name: 'localhost graphql',
|
name: 'graphql endpoint',
|
||||||
url: 'http://localhost:4001/graphql',
|
url: process.env.GRAPHQL_ENDPOINT || 'http://localhost:4001/graphql',
|
||||||
skipSSLValidation: true
|
skipSSLValidation: true,
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
}
|
Loading…
Reference in New Issue