From c4c9b77aa8db75b53ef2b92b705c5dedd9081efd Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 22 Aug 2024 18:09:22 +0900 Subject: [PATCH] =?UTF-8?q?chore-fe:=20Sentry=20Beta=20=EC=B6=94=EA=B0=80?= =?UTF-8?q?=20(#589)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jeongwoo Park <121204715+lurgi@users.noreply.github.com> --- frontend/src/env.d.ts | 2 ++ frontend/src/main.tsx | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/env.d.ts b/frontend/src/env.d.ts index f885d0b2f..3129f4643 100644 --- a/frontend/src/env.d.ts +++ b/frontend/src/env.d.ts @@ -5,5 +5,7 @@ declare namespace NodeJS { SENTRY_DSN: string; SENTRY_AUTH_TOKEN: string; GA_MEASUREMENT_ID: string; + PROD_URL: string; + DEV_URL: string; } } diff --git a/frontend/src/main.tsx b/frontend/src/main.tsx index f57451431..451c484d2 100644 --- a/frontend/src/main.tsx +++ b/frontend/src/main.tsx @@ -8,12 +8,13 @@ import { ModalProvider } from '@contexts/ModalContext'; import { Global, ThemeProvider } from '@emotion/react'; import ToastProvider from '@contexts/ToastContext'; -import { BASE_URL } from '@constants/constants'; import globalStyles from './styles/globalStyles'; import theme from './styles/theme'; import AppRouter from './router/AppRouter'; +const { PROD_URL, DEV_URL } = process.env; + async function setPrev() { if (process.env.NODE_ENV === 'development') { Sentry.getCurrentScope().setLevel('info'); @@ -29,7 +30,7 @@ async function setPrev() { integrations: [Sentry.browserTracingIntegration(), Sentry.replayIntegration()], // Performance Monitoring tracesSampleRate: 1.0, // Capture 100% of the transactions - tracePropagationTargets: ['localhost', BASE_URL], + tracePropagationTargets: ['localhost', PROD_URL, DEV_URL], // Session Replay replaysSessionSampleRate: 0.1, replaysOnErrorSampleRate: 1.0,