diff --git a/next.config.js b/next.config.js index 9e75370..8264b84 100644 --- a/next.config.js +++ b/next.config.js @@ -4,12 +4,6 @@ const withBundleAnalyzer = require("@next/bundle-analyzer")({ const withPWA = require("next-pwa"); const runtimeCaching = require("next-pwa/cache"); -const { withSentryConfig } = require("@sentry/nextjs"); - -const SentryWebpackPluginOptions = { - silent: true, -}; - const isDevelopment = process.env.NODE_ENV === "development"; // @ts-check @@ -74,6 +68,4 @@ const nextConfig = { }, }; -module.exports = isDevelopment - ? nextConfig - : withSentryConfig(withPWA(withBundleAnalyzer(nextConfig)), SentryWebpackPluginOptions); +module.exports = isDevelopment ? nextConfig : withPWA(withBundleAnalyzer(nextConfig)); diff --git a/pages/api/analytics.ts b/pages/api/analytics.ts index a299f57..cd24f0e 100644 --- a/pages/api/analytics.ts +++ b/pages/api/analytics.ts @@ -1,4 +1,3 @@ -import { withSentry } from "@sentry/nextjs"; import { google } from "googleapis"; import type { NextApiRequest, NextApiResponse } from "next"; @@ -34,4 +33,4 @@ const handlers = async (_: NextApiRequest, res: NextApiResponse) => { }); }; -export default withSentry(handlers); +export default handlers; diff --git a/pages/api/endorsement.ts b/pages/api/endorsement.ts index 897bb54..540e807 100644 --- a/pages/api/endorsement.ts +++ b/pages/api/endorsement.ts @@ -1,5 +1,4 @@ import prisma from "@/lib/prisma"; -import { withSentry } from "@sentry/nextjs"; import type { NextApiRequest, NextApiResponse } from "next"; import { getSession } from "next-auth/react"; @@ -19,4 +18,4 @@ async function handler(req: NextApiRequest, res: NextApiResponse) { return res.send("Method not allowed."); } -export default withSentry(handler); +export default handler; diff --git a/pages/api/guestbook/[id].ts b/pages/api/guestbook/[id].ts index d28d6fd..3d7ef91 100644 --- a/pages/api/guestbook/[id].ts +++ b/pages/api/guestbook/[id].ts @@ -1,5 +1,4 @@ import { getSession } from "next-auth/react"; -import { withSentry } from "@sentry/nextjs"; import type { NextApiRequest, NextApiResponse } from "next"; import prisma from "@/lib/prisma"; import { GuestBookEntry } from "@/lib/types/guestbook"; @@ -59,4 +58,4 @@ const guestbookEntries = async ( return res.send("Method not allowed."); }; -export default withSentry(guestbookEntries); +export default guestbookEntries; diff --git a/pages/api/guestbook/index.ts b/pages/api/guestbook/index.ts index 5a822e6..56637e5 100644 --- a/pages/api/guestbook/index.ts +++ b/pages/api/guestbook/index.ts @@ -1,5 +1,4 @@ import { getSession } from "next-auth/react"; -import { withSentry } from "@sentry/nextjs"; import type { NextApiRequest, NextApiResponse } from "next"; import prisma from "@/lib/prisma"; import { GuestBookEntry } from "@/lib/types/guestbook"; @@ -58,4 +57,4 @@ const handler = async ( return res.send("Method not allowed."); }; -export default withSentry(handler); +export default handler; diff --git a/pages/api/now-playing.ts b/pages/api/now-playing.ts index 9e81178..ac15d83 100644 --- a/pages/api/now-playing.ts +++ b/pages/api/now-playing.ts @@ -1,5 +1,4 @@ import { getNowPlaying } from "@/lib/spotify"; -import { withSentry } from "@sentry/nextjs"; import type { NextApiRequest, NextApiResponse } from "next"; export interface NowPlayingSong { @@ -41,4 +40,4 @@ async function handler(_: NextApiRequest, res: NextApiResponse) } } -export default withSentry(handler); +export default handler; diff --git a/pages/api/skill-category.ts b/pages/api/skill-category.ts index c927712..3f3b29d 100644 --- a/pages/api/skill-category.ts +++ b/pages/api/skill-category.ts @@ -1,6 +1,5 @@ import { getAllSkillsByCategory } from "@/lib/db"; import { SkillCategory } from "@/lib/types/skill"; -import { withSentry } from "@sentry/nextjs"; import type { NextApiRequest, NextApiResponse } from "next"; async function handler(req: NextApiRequest, res: NextApiResponse) { @@ -11,4 +10,4 @@ async function handler(req: NextApiRequest, res: NextApiResponse) { @@ -34,4 +33,4 @@ async function handler(req: NextApiRequest, res: NextApiResponse