Skip to content

Commit

Permalink
Experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
emwalker committed May 29, 2024
1 parent d5db3c8 commit 59fb10b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion k8s/next-release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1.2.9
v1.2.12
2 changes: 1 addition & 1 deletion k8s/overlays/prod/digraph/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions next/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
7 changes: 2 additions & 5 deletions next/lib/ApolloWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 59fb10b

Please sign in to comment.