From 1c62f114fc7d2e67880f990ec44e8b816f2f25e5 Mon Sep 17 00:00:00 2001 From: ntheile Date: Wed, 8 Feb 2023 21:08:08 -0600 Subject: [PATCH] fix: dockerfile node 18 --- Dockerfile | 3 +-- src/components/auth-provider.tsx | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5542face..7395b1c7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,8 +16,7 @@ COPY ./*.js ./ RUN CUSTOM_MODULES=${CUSTOM_MODULES} yarn build:node && yarn build:files && yarn build:bundler -# FROM gcr.io/distroless/nodejs:16 -FROM node:18-alpine +FROM gcr.io/distroless/nodejs:18 ARG CUSTOM_MODULES="default" diff --git a/src/components/auth-provider.tsx b/src/components/auth-provider.tsx index 043cfa1c..f496c4e6 100644 --- a/src/components/auth-provider.tsx +++ b/src/components/auth-provider.tsx @@ -93,7 +93,6 @@ export const AuthProvider: FCT = ({ children, galoyClient, authIdentity }) => { credentials: "include", }) localStorage.clear() - location.href = "/" } if (graphQLErrors) { console.debug("[GraphQL errors]:", graphQLErrors)