Skip to content

Commit 59fb10b

Browse files
committed
Experiment
1 parent d5db3c8 commit 59fb10b

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

k8s/next-release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.2.9
1+
v1.2.12

k8s/overlays/prod/digraph/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ images:
2121
- name: emwalker/digraph-node:latest
2222
newTag: v1.1.6
2323
- name: emwalker/digraph-node:next
24-
newTag: v1.2.9
24+
newTag: v1.2.12

next/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ COPY . .
2121
# Uncomment the following line in case you want to disable telemetry during the build.
2222
# ENV NEXT_TELEMETRY_DISABLED 1
2323

24-
ARG DIGRAPH_API_EXTERNAL_URL=https://api.digraph.app
24+
ARG NEXT_PUBLIC_API_URL=https://api.digraph.app
2525

2626
RUN yarn next build
2727

@@ -51,4 +51,4 @@ EXPOSE 3002
5151

5252
ENV PORT 3002
5353

54-
CMD DIGRAPH_API_EXTERNAL_URL=https://api.digraph.app HOSTNAME="0.0.0.0" node server.js
54+
CMD HOSTNAME="0.0.0.0" node server.js

next/lib/ApolloWrapper.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,9 @@ if (process.env.NODE_ENV !== 'production') {
1818
loadErrorMessages()
1919
}
2020

21-
const apiOrigin = process.env.DIGRAPH_API_EXTERNAL_URL || 'http://localhost:8080'
22-
2321
function makeClient() {
24-
const httpLink = new HttpLink({
25-
uri: `${apiOrigin}/graphql`,
26-
})
22+
const apiOrigin = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:8080'
23+
const httpLink = new HttpLink({ uri: `${apiOrigin}/graphql` })
2724

2825
return new NextSSRApolloClient({
2926
cache: new NextSSRInMemoryCache(),

0 commit comments

Comments
 (0)