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
|
||||
|
||||
ARG GRAPHQL_ENDPOINT
|
||||
ENV REACT_APP_GRAPHQL_URI=${GRAPHQL_ENDPOINT}
|
||||
ENV GRAPHQL_ENDPOINT=${GRAPHQL_ENDPOINT}
|
||||
|
||||
RUN mkdir -p /app
|
||||
WORKDIR /app
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
module.exports = {
|
||||
client: {
|
||||
service: {
|
||||
name: 'localhost graphql',
|
||||
url: 'http://localhost:4001/graphql',
|
||||
skipSSLValidation: true
|
||||
}
|
||||
}
|
||||
}
|
||||
name: 'graphql endpoint',
|
||||
url: process.env.GRAPHQL_ENDPOINT || 'http://localhost:4001/graphql',
|
||||
skipSSLValidation: true,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue