Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,5 @@ DJANGO_MIGRATE=True
CSRF_TRUSTED_ORIGINS=http://localhost
# should define a strong key for JWT token key
SECRET_KEY=
# set your sentry DSN here
REACT_APP_SENTRY_DSN=""
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,8 @@ pass it into the corresponding test command with `-- --config "baseUrl=http://lo

- Headless: `npx cypress run --config "baseUrl=http://localhost:3000"`
- Headed: `npx cypress open --config "baseUrl=http://localhost:3000"`

### Using Sentry for Frontend

In order to use Sentry for frontend, you need to add the following environment variables to your `.env` file:
- REACT_APP_SENTRY_DSN
1 change: 1 addition & 0 deletions compose.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ services:
image: ghcr.io/openimis/openimis-fe:${FE_TAG:-develop}
restart: always
environment:
- REACT_APP_SENTRY_DSN=${REACT_APP_SENTRY_DSN}
- REACT_APP_API_URL=api
- NEW_OPENIMIS_HOST=${DOMAIN}
- OPENIMIS_CONF_JSON=${OPENIMIS_FE_CONF_JSON}
Expand Down