Skip to content

Commit

Permalink
remove sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
eldemcan committed May 28, 2024
1 parent 2b5915e commit 099e0b1
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 193 deletions.
177 changes: 1 addition & 176 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
"@codemirror/lang-json": "^6.0.1",
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@sentry/react": "^7.112.2",
"@sentry/tracing": "^7.112.2",
"@types/react-router-dom": "5.3.3",
"@types/react-transition-group": "^4.4.10",
"@uiw/react-codemirror": "^4.22.0",
Expand All @@ -52,8 +50,7 @@
"recharts": "^2.12.6",
"remove": "^0.1.5",
"tailwindcss": "2.2.19",
"tldts": "5.7.66",
"uninstall": "^0.0.0"
"tldts": "5.7.66"
},
"devDependencies": {
"@babel/core": "7.17.2",
Expand Down
12 changes: 0 additions & 12 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,5 @@ import { BrowserRouter } from "react-router-dom";
import "./index.css";
import Root from "~/pages/Root";

if (process.env.SENTRY) {
Promise.all([import("@sentry/react"), import("@sentry/tracing")]).then(
([Sentry, { Integrations }]) => {
Sentry.init({
dsn: process.env.SENTRY,
integrations: [new Integrations.BrowserTracing()],
tracesSampleRate: 1.0,
});
}
);
}

const root = createRoot(document.querySelector("#root")!);
root.render(<Root Router={BrowserRouter} />);
1 change: 0 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export default defineConfig(({ mode }) => {
define: {
"process.env.API_DOMAIN": JSON.stringify(env.API_DOMAIN),
"process.env.API_PROXY_DOMAIN": JSON.stringify(env.API_PROXY_DOMAIN),
"process.env.SENTRY": JSON.stringify(env.SENTRY),
"process.env.NODE_ENV": JSON.stringify(env.NODE_ENV),
"process.env.GITHUB_ACCOUNT": JSON.stringify(env.GITHUB_ACCOUNT),
},
Expand Down

0 comments on commit 099e0b1

Please sign in to comment.