Skip to content

Commit

Permalink
Set sentry frontend env from host
Browse files Browse the repository at this point in the history
  • Loading branch information
pjsier committed Jan 13, 2024
1 parent c770091 commit 8c18450
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ if (import.meta.env.PROD) {
// Could move to configuration, but not sensitive and will be on client side
Sentry.init({
dsn: "https://b8a640bb5e1b226438d5c61550608d0f@o86794.ingest.sentry.io/4506107981529088",
environment:
window.location.host === "app.propertytaxproject.com" ? "prod" : "dev",
})
}

Expand Down

0 comments on commit 8c18450

Please sign in to comment.