Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FE] CD test #233

Merged
merged 5 commits into from
Aug 7, 2024
Merged
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
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