Skip to content

Commit

Permalink
mixpanel fix complete (#1328)
Browse files Browse the repository at this point in the history
  • Loading branch information
namansleeps authored Oct 9, 2023
1 parent 7de7287 commit c02fe30
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions gui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
2 changes: 1 addition & 1 deletion gui/pages/api/apiConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c02fe30

Please sign in to comment.