Skip to content

Commit

Permalink
[FE] FEAT: Sentry environment development와 production으로 분리 #1687
Browse files Browse the repository at this point in the history
  • Loading branch information
jnkeniaem committed Nov 18, 2024
1 parent 55ac3ef commit c1ae80e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ import { GlobalStyle } from "@/Cabinet/assets/data/ColorTheme";
Sentry.init({
dsn: import.meta.env.VITE_SENTRY_DSN,
environment:
import.meta.env.VITE_IS_LOCAL === "true" ? "local" : "production",
import.meta.env.VITE_IS_LOCAL === "true"
? "local"
: import.meta.env.VITE_BE_HOST.includes("dev")
? "development"
: "production",
release: "^8.18.0",
integrations: [
// See docs for support of different versions of variation of react router
Expand Down

0 comments on commit c1ae80e

Please sign in to comment.