Skip to content

Commit

Permalink
chore: remove sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasgriffintn committed Aug 24, 2024
1 parent f22085b commit 0ebf089
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 1,037 deletions.
5 changes: 0 additions & 5 deletions apps/web/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,3 @@ node_modules

.wrangler
wrangler.toml
# Sentry Config File
.sentryclirc

# Sentry Config File
.env.sentry-build-plugin
3 changes: 3 additions & 0 deletions apps/web/.sentryclirc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

[auth]
token=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
18 changes: 1 addition & 17 deletions apps/web/app/entry.client.tsx
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
import * as Sentry from '@sentry/remix';
import { RemixBrowser, useLocation, useMatches } from '@remix-run/react';
import { RemixBrowser } from '@remix-run/react';
import { startTransition, StrictMode, useEffect } from 'react';
import { hydrateRoot } from 'react-dom/client';

Sentry.init({
dsn: 'https://ba9b2b2e4986dd0a6863df487c2bfc57@o981760.ingest.us.sentry.io/4507830266101760',
tracesSampleRate: 1,
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1,

integrations: [
Sentry.browserTracingIntegration({
useEffect,
useLocation,
useMatches,
}),
],
});

startTransition(() => {
hydrateRoot(
document,
Expand Down
5 changes: 0 additions & 5 deletions apps/web/app/entry.server.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
import * as Sentry from '@sentry/remix';
import type { EntryContext } from '@remix-run/cloudflare';
import { RemixServer } from '@remix-run/react';
import { isbot } from 'isbot';
import { renderToReadableStream } from 'react-dom/server';

export const handleError = Sentry.wrapHandleErrorWithSentry((error) => {
console.error(error);
});

export default async function handleRequest(
request: Request,
responseStatusCode: number,
Expand Down
3 changes: 1 addition & 2 deletions apps/web/app/root.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { captureRemixErrorBoundaryError } from '@sentry/remix';
import {
Links,
Meta,
Expand Down Expand Up @@ -42,7 +41,7 @@ export function Layout({ children }: { children: React.ReactNode }) {

export const ErrorBoundary = () => {
const error = useRouteError();
captureRemixErrorBoundaryError(error);
console.error(error);
return <div>Something went wrong</div>;
};

Expand Down
7 changes: 0 additions & 7 deletions apps/web/instrumentation.server.mjs

This file was deleted.

2 changes: 0 additions & 2 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
"@remix-run/cloudflare": "^2.11.2",
"@remix-run/cloudflare-pages": "^2.11.2",
"@remix-run/react": "^2.11.2",
"@sentry/remix": "^8.26.0",
"@sentry/vite-plugin": "^2.22.2",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"isbot": "^5.1.17",
Expand Down
5 changes: 0 additions & 5 deletions apps/web/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { sentryVitePlugin } from '@sentry/vite-plugin';
import {
vitePlugin as remix,
cloudflareDevProxyVitePlugin as remixCloudflareDevProxy,
Expand All @@ -17,10 +16,6 @@ export default defineConfig({
},
}),
tsconfigPaths(),
sentryVitePlugin({
org: 'ngpersonal',
project: 'llm-rss-web',
}),
],

build: {
Expand Down
Loading

0 comments on commit 0ebf089

Please sign in to comment.