From 127e10a70719a11b5507a8cb831d46e3827bc9bd Mon Sep 17 00:00:00 2001 From: namansleeps Date: Mon, 9 Oct 2023 15:21:33 +0530 Subject: [PATCH] mixpanel fix complete --- gui/Dockerfile | 2 ++ gui/pages/api/apiConfig.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/Dockerfile b/gui/Dockerfile index bdfe1cedb..68c41783d 100644 --- a/gui/Dockerfile +++ b/gui/Dockerfile @@ -14,6 +14,8 @@ COPY --from=deps /app/node_modules ./node_modules COPY . . ARG NEXT_PUBLIC_API_BASE_URL=/api ENV NEXT_PUBLIC_API_BASE_URL=$NEXT_PUBLIC_API_BASE_URL +ARG NEXT_PUBLIC_MIXPANEL_AUTH_ID +ENV NEXT_PUBLIC_MIXPANEL_AUTH_ID=$NEXT_PUBLIC_MIXPANEL_AUTH_ID EXPOSE 3000 CMD ["npm", "run", "dev"] \ No newline at end of file diff --git a/gui/pages/api/apiConfig.js b/gui/pages/api/apiConfig.js index 2f9e736b7..14da159c4 100644 --- a/gui/pages/api/apiConfig.js +++ b/gui/pages/api/apiConfig.js @@ -4,7 +4,7 @@ const GITHUB_CLIENT_ID = process.env.GITHUB_CLIENT_ID; const API_BASE_URL = process.env.NEXT_PUBLIC_API_BASE_URL || 'http://localhost:8001'; const GOOGLE_ANALYTICS_MEASUREMENT_ID = process.env.GOOGLE_ANALYTICS_MEASUREMENT_ID; const GOOGLE_ANALYTICS_API_SECRET = process.env.GOOGLE_ANALYTICS_API_SECRET; -const MIXPANEL_AUTH_ID = process.env.MIXPANEL_AUTH_ID +const MIXPANEL_AUTH_ID = process.env.NEXT_PUBLIC_MIXPANEL_AUTH_ID export const baseUrl = () => { return API_BASE_URL;