Skip to content

Commit

Permalink
Merge pull request #90 from knovator/fix/widget-environment-variables
Browse files Browse the repository at this point in the history
Fix Widget environment variables
  • Loading branch information
chavda-bhavik authored Nov 22, 2022
2 parents d761444 + 244b386 commit 41ec142
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/widget/src/config/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const API_URL =
? window._env_?.REACT_APP_API_URL || process.env.REACT_APP_API_URL || 'http://localhost:1336'
: window._env_?.REACT_APP_API_URL || process.env.REACT_APP_API_URL || 'http://localhost:3000';

export const SENTRY_DSN = window._env_?.REACT_APP_API_URL || process.env.REACT_APP_SENTRY_DSN || undefined;
export const SENTRY_DSN = window._env_?.REACT_APP_SENTRY_DSN || process.env.REACT_APP_SENTRY_DSN || undefined;

export const ENV = window._env_?.REACT_APP_ENVIRONMENT || process.env.REACT_APP_ENVIRONMENT || 'local';

Expand Down
2 changes: 1 addition & 1 deletion docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
environment:
NODE_ENV: ${NODE_ENV}
PORT: ${API_PORT}
FRONT_BASE_URL: ${FRONT_BASE_URL}
FRONT_BASE_URL: ${WIDGET_URL}
MONGO_URL: ${MONGO_URL}
S3_REGION: ${S3_REGION}
S3_LOCAL_STACK: ${S3_LOCAL_STACK}
Expand Down

0 comments on commit 41ec142

Please sign in to comment.