Skip to content

Commit

Permalink
[FE] CD test (#233)
Browse files Browse the repository at this point in the history
* ci: sentry 초기 설정

* chore: 서비스 타이틀 대문자로 변경

* chore: merge
  • Loading branch information
chysis authored Aug 7, 2024
1 parent 1d75ffb commit 38b6dc7
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 28 deletions.
53 changes: 26 additions & 27 deletions frontend/public/index.html
Original file line number Diff line number Diff line change
@@ -1,32 +1,31 @@
<!doctype html>
<html lang="ko">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-SZC67V55PW"></script>
<script>
window.dataLayer = window.dataLayer || [];

<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-SZC67V55PW"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());

function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-SZC67V55PW');
</script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap"
rel="stylesheet"
/>
<link href="https://hangeul.pstatic.net/hangeul_static/css/nanum-gothic.css" rel="stylesheet" />
<title>REVIEW ME</title>
</head>

gtag('config', 'G-SZC67V55PW');
</script>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap"
rel="stylesheet" />
<link href="https://hangeul.pstatic.net/hangeul_static/css/nanum-gothic.css" rel="stylesheet" />
<title>review me</title>

</head>

<body>
<div id="root"></div>
</body>

</html>
<body>
<div id="root"></div>
</body>
</html>
3 changes: 2 additions & 1 deletion frontend/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ const baseUrlPattern = new RegExp(`^${process.env.API_BASE_URL?.replace(/[-\/\\^
Sentry.init({
dsn: `${process.env.SENTRY_DSN}`,
enabled: !isDev,
integrations: [Sentry.browserTracingIntegration()],
environment: 'production',
tracesSampleRate: 1.0,
tracePropagationTargets: [baseUrlPattern],
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
});

const queryClient = new QueryClient({
Expand Down
5 changes: 5 additions & 0 deletions frontend/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,11 @@ module.exports = (env, argv) => {
systemvars: true,
path: './.env',
}),
sentryWebpackPlugin({
authToken: process.env.SENTRY_AUTH_TOKEN,
org: 'review-me',
project: 'review-me',
}),
],
devtool: isProduction ? 'hidden-source-map' : 'eval',
devServer: {
Expand Down

0 comments on commit 38b6dc7

Please sign in to comment.