Skip to content

Commit

Permalink
chore: remove sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
Dovakiin0 committed Jan 19, 2025
1 parent 3599640 commit 29c95a8
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 121 deletions.
38 changes: 1 addition & 37 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import withPWA from "next-pwa";
import { withSentryConfig } from "@sentry/nextjs";

/** @type {import('next').NextConfig} */
const nextConfig = {
Expand All @@ -16,44 +15,9 @@ const nextConfig = {
},
};

const sentryConfig = withSentryConfig(nextConfig, {
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options

org: "dovakiin0",
project: "kitsunee",

// Only print logs for uploading source maps in CI
silent: !process.env.CI,

// For all available options, see:
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/

// Upload a larger set of source maps for prettier stack traces (increases build time)
widenClientFileUpload: true,

// Uncomment to route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
// This can increase your server load as well as your hosting bill.
// Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
// side errors will fail.
// tunnelRoute: "/monitoring",

// Hides source maps from generated client bundles
hideSourceMaps: true,

// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true,

// Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.)
// See the following for more information:
// https://docs.sentry.io/product/crons/
// https://vercel.com/docs/cron-jobs
automaticVercelMonitors: true,
});

export default withPWA({
dest: "public",
register: true,
skipWaiting: true,
disable: process.env.NODE_ENV === "development",
})(sentryConfig);
})(nextConfig);
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"@radix-ui/react-separator": "^1.1.0",
"@radix-ui/react-slot": "^1.1.0",
"@radix-ui/react-tabs": "^1.1.1",
"@sentry/nextjs": "^8.47.0",
"artplayer": "^5.2.1",
"artplayer-plugin-ambilight": "^1.0.0",
"artplayer-plugin-hls-control": "^1.0.1",
Expand Down
28 changes: 0 additions & 28 deletions sentry.client.config.ts

This file was deleted.

16 changes: 0 additions & 16 deletions sentry.edge.config.ts

This file was deleted.

15 changes: 0 additions & 15 deletions sentry.server.config.ts

This file was deleted.

9 changes: 0 additions & 9 deletions src/app/api/sentry-example-api/route.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/app/global-error.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"use client";

import * as Sentry from "@sentry/nextjs";
import { useEffect } from "react";
import NextError from "next/error";

Expand All @@ -11,7 +10,6 @@ export default function GlobalError({
}) {
useEffect(() => {
console.log(error);
Sentry.captureException(error);
}, [error]);

return (
Expand Down
13 changes: 0 additions & 13 deletions src/instrumentation.ts

This file was deleted.

0 comments on commit 29c95a8

Please sign in to comment.