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;