diff --git a/k8s/next-release b/k8s/next-release index 1db994be..a35de1f9 100644 --- a/k8s/next-release +++ b/k8s/next-release @@ -1 +1 @@ -v1.2.9 +v1.2.12 diff --git a/k8s/overlays/prod/digraph/kustomization.yaml b/k8s/overlays/prod/digraph/kustomization.yaml index 03696bf1..be5adc43 100644 --- a/k8s/overlays/prod/digraph/kustomization.yaml +++ b/k8s/overlays/prod/digraph/kustomization.yaml @@ -21,4 +21,4 @@ images: - name: emwalker/digraph-node:latest newTag: v1.1.6 - name: emwalker/digraph-node:next - newTag: v1.2.9 + newTag: v1.2.12 diff --git a/next/Dockerfile b/next/Dockerfile index 44752064..35719fb7 100644 --- a/next/Dockerfile +++ b/next/Dockerfile @@ -21,7 +21,7 @@ COPY . . # Uncomment the following line in case you want to disable telemetry during the build. # ENV NEXT_TELEMETRY_DISABLED 1 -ARG DIGRAPH_API_EXTERNAL_URL=https://api.digraph.app +ARG NEXT_PUBLIC_API_URL=https://api.digraph.app RUN yarn next build @@ -51,4 +51,4 @@ EXPOSE 3002 ENV PORT 3002 -CMD DIGRAPH_API_EXTERNAL_URL=https://api.digraph.app HOSTNAME="0.0.0.0" node server.js +CMD HOSTNAME="0.0.0.0" node server.js diff --git a/next/lib/ApolloWrapper.tsx b/next/lib/ApolloWrapper.tsx index bbc3c505..073331e0 100644 --- a/next/lib/ApolloWrapper.tsx +++ b/next/lib/ApolloWrapper.tsx @@ -18,12 +18,9 @@ if (process.env.NODE_ENV !== 'production') { loadErrorMessages() } -const apiOrigin = process.env.DIGRAPH_API_EXTERNAL_URL || 'http://localhost:8080' - function makeClient() { - const httpLink = new HttpLink({ - uri: `${apiOrigin}/graphql`, - }) + const apiOrigin = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8080' + const httpLink = new HttpLink({ uri: `${apiOrigin}/graphql` }) return new NextSSRApolloClient({ cache: new NextSSRInMemoryCache(),