Skip to content

Commit 77f6fd2

Browse files
committed
Merge branch 'develop'
2 parents 3eadf1f + c9f49b1 commit 77f6fd2

8 files changed

Lines changed: 570 additions & 19 deletions

File tree

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,9 @@ dist-ssr
2323
*.sln
2424
*.sw?
2525

26-
.env
26+
# TypeScript 빌드 캐시 파일
27+
*.tsbuildinfo
28+
29+
.env
30+
# Sentry Config File
31+
.env.sentry-build-plugin

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
"@dnd-kit/core": "^6.3.1",
1515
"@dnd-kit/sortable": "^10.0.0",
1616
"@emotion/react": "^11.13.3",
17+
"@sentry/react": "^8.54.0",
18+
"@sentry/vite-plugin": "^3.1.2",
1719
"@tanstack/react-query": "^5.56.2",
1820
"@tanstack/react-query-devtools": "^5.62.16",
1921
"axios": "^1.7.7",

src/main.tsx

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,25 @@
1-
import { StrictMode } from 'react'
2-
import { createRoot } from 'react-dom/client'
3-
import App from './App.tsx'
1+
import { StrictMode } from "react";
2+
import { createRoot } from "react-dom/client";
3+
import * as Sentry from "@sentry/react";
4+
import App from "./App.tsx";
45

5-
createRoot(document.getElementById('root')!).render(
6+
Sentry.init({
7+
dsn: import.meta.env.VITE_SENTRY_DSN,
8+
integrations: [
9+
Sentry.browserTracingIntegration(),
10+
Sentry.replayIntegration(),
11+
],
12+
// Tracing
13+
tracesSampleRate: 1.0, // Capture 100% of the transactions
14+
// Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled
15+
tracePropagationTargets: ["localhost:5173", "https:yeolmae.store"],
16+
// Session Replay
17+
replaysSessionSampleRate: 0.1, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.
18+
replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.
19+
});
20+
21+
createRoot(document.getElementById("root")!).render(
622
<StrictMode>
723
<App />
8-
</StrictMode>,
9-
)
24+
</StrictMode>
25+
);

src/pages/Admin/page/AdminPage/DeliveryCheck/DeliveryCheck.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ const DeliveryCheck = () => {
6666
)}
6767
</div>
6868
</div>
69+
<button
70+
onClick={() => {
71+
throw new Error("This is your first error!");
72+
}}
73+
>
74+
Break the world
75+
</button>
6976
</div>
7077
);
7178
};

tsconfig.node.tsbuildinfo

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

vite.config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { sentryVitePlugin } from "@sentry/vite-plugin";
12
import { defineConfig } from "vite";
23
import react from "@vitejs/plugin-react-swc";
34
import tsconfigPaths from "vite-tsconfig-paths";
@@ -6,7 +7,7 @@ import svgr from "vite-plugin-svgr";
67
export default defineConfig({
78
plugins: [
89
react({
9-
jsxImportSource: '@emotion/react',
10+
jsxImportSource: "@emotion/react",
1011
}),
1112
tsconfigPaths(),
1213
svgr({
@@ -15,5 +16,12 @@ export default defineConfig({
1516
memo: true,
1617
},
1718
}),
19+
sentryVitePlugin({
20+
org: "taeseung-yoo",
21+
project: "javascript-react",
22+
}),
1823
],
24+
build: {
25+
sourcemap: true,
26+
},
1927
});

vite.config.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1+
import { sentryVitePlugin } from "@sentry/vite-plugin";
12
import { defineConfig } from "vite";
23
import react from "@vitejs/plugin-react-swc";
34
import tsconfigPaths from "vite-tsconfig-paths";
45
import svgr from "vite-plugin-svgr";
5-
66
// https://vitejs.dev/config/
77
export default defineConfig({
88
plugins: [
99
react({
10-
jsxImportSource: '@emotion/react',
10+
jsxImportSource: "@emotion/react",
1111
}),
1212
tsconfigPaths(),
1313
svgr({
@@ -16,5 +16,13 @@ export default defineConfig({
1616
memo: true,
1717
},
1818
}),
19+
sentryVitePlugin({
20+
org: "taeseung-yoo",
21+
project: "javascript-react",
22+
}),
1923
],
24+
25+
build: {
26+
sourcemap: true,
27+
},
2028
});

0 commit comments

Comments
 (0)