Skip to content

Commit

Permalink
change: removed sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
jedstroke committed Dec 1, 2024
1 parent d57876f commit 9afbd80
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 1,915 deletions.
2 changes: 0 additions & 2 deletions app/client/.env.example

This file was deleted.

8 changes: 1 addition & 7 deletions app/client/next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
/** @type {import('next').NextConfig} */
import { withSentryConfig } from "@sentry/nextjs";
const nextConfig = {};

export default withSentryConfig(nextConfig, {
org: process.env.SENTRY_ORG,
project: "javascript-nextjs",
authToken: process.env.SENTRY_AUTH_TOKEN,
silent: false,
});
export default nextConfig
1 change: 0 additions & 1 deletion app/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
},
"dependencies": {
"@radix-ui/react-slot": "^1.1.0",
"@sentry/nextjs": "^8.41.0",
"@starknet-react/chains": "^3.1.0",
"@starknet-react/core": "^3.6.0",
"blockies-ts": "^1.0.0",
Expand Down
1,931 changes: 47 additions & 1,884 deletions app/client/pnpm-lock.yaml

Large diffs are not rendered by default.

10 changes: 0 additions & 10 deletions app/client/sentry.client.config.ts

This file was deleted.

4 changes: 0 additions & 4 deletions app/client/src/app/error.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
'use client'

import * as Sentry from "@sentry/nextjs"
import { Button } from "@/components/ui/button"
import { AlertTriangle } from 'lucide-react'
import { useEffect } from "react"
Expand All @@ -14,8 +12,6 @@ export default function Error({
reset: () => void
}) {
useEffect(() => {
// Log the error to Sentry
Sentry.captureException(error)
}, [error])

return (
Expand Down
8 changes: 1 addition & 7 deletions app/client/src/components/error-boundary.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
'use client'

import { Button } from "@/components/ui/button"
import { Card, CardContent, CardFooter, CardHeader, CardTitle } from "@/components/ui/card"
import { AlertOctagon } from 'lucide-react'
import * as Sentry from "@sentry/nextjs"
import { useEffect } from "react"

interface ErrorBoundaryProps {
Expand All @@ -14,11 +12,7 @@ interface ErrorBoundaryProps {

export function ErrorBoundary({ error, reset, message }: ErrorBoundaryProps) {
useEffect(() => {
// Log the error to Sentry with additional context
Sentry.withScope((scope) => {
scope.setExtra("componentStack", error.stack)
Sentry.captureException(error)
})

}, [error])

return (
Expand Down

0 comments on commit 9afbd80

Please sign in to comment.