1
Fork 0

Try to fix client endpoint env var

This commit is contained in:
viktorstrate 2019-08-09 17:54:24 +02:00
parent 50bdc86ab0
commit d6366f8467
3 changed files with 8 additions and 8 deletions

View File

@ -1 +1 @@
REACT_APP_GRAPHQL_URI=http://localhost:4001/graphql
GRAPHQL_ENDPOINT=http://localhost:4001/graphql

View File

@ -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

View File

@ -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,
},
},
}