Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temporarily disable sentry #79

Merged
merged 1 commit into from
Oct 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -74,6 +68,4 @@ const nextConfig = {
},
};

module.exports = isDevelopment
? nextConfig
: withSentryConfig(withPWA(withBundleAnalyzer(nextConfig)), SentryWebpackPluginOptions);
module.exports = isDevelopment ? nextConfig : withPWA(withBundleAnalyzer(nextConfig));
3 changes: 1 addition & 2 deletions pages/api/analytics.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { withSentry } from "@sentry/nextjs";
import { google } from "googleapis";
import type { NextApiRequest, NextApiResponse } from "next";

Expand Down Expand Up @@ -34,4 +33,4 @@ const handlers = async (_: NextApiRequest, res: NextApiResponse<Analytic>) => {
});
};

export default withSentry(handlers);
export default handlers;
3 changes: 1 addition & 2 deletions pages/api/endorsement.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand All @@ -19,4 +18,4 @@ async function handler(req: NextApiRequest, res: NextApiResponse) {
return res.send("Method not allowed.");
}

export default withSentry(handler);
export default handler;
3 changes: 1 addition & 2 deletions pages/api/guestbook/[id].ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -59,4 +58,4 @@ const guestbookEntries = async (
return res.send("Method not allowed.");
};

export default withSentry(guestbookEntries);
export default guestbookEntries;
3 changes: 1 addition & 2 deletions pages/api/guestbook/index.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -58,4 +57,4 @@ const handler = async (
return res.send("Method not allowed.");
};

export default withSentry(handler);
export default handler;
3 changes: 1 addition & 2 deletions pages/api/now-playing.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { getNowPlaying } from "@/lib/spotify";
import { withSentry } from "@sentry/nextjs";
import type { NextApiRequest, NextApiResponse } from "next";

export interface NowPlayingSong {
Expand Down Expand Up @@ -41,4 +40,4 @@ async function handler(_: NextApiRequest, res: NextApiResponse<NowPlayingSong>)
}
}

export default withSentry(handler);
export default handler;
3 changes: 1 addition & 2 deletions pages/api/skill-category.ts
Original file line number Diff line number Diff line change
@@ -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<SkillCategory[] | string>) {
Expand All @@ -11,4 +10,4 @@ async function handler(req: NextApiRequest, res: NextApiResponse<SkillCategory[]
return res.send("Method not allowed.");
}

export default withSentry(handler);
export default handler;
3 changes: 1 addition & 2 deletions pages/api/skill.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import prisma from "@/lib/prisma";
import { Skill } from "@/lib/types/skill";
import { withSentry } from "@sentry/nextjs";
import type { NextApiRequest, NextApiResponse } from "next";

async function handler(req: NextApiRequest, res: NextApiResponse<Skill[] | string>) {
Expand Down Expand Up @@ -34,4 +33,4 @@ async function handler(req: NextApiRequest, res: NextApiResponse<Skill[] | strin
return res.send("Method not allowed.");
}

export default withSentry(handler);
export default handler;
8 changes: 0 additions & 8 deletions sentry.client.config.js

This file was deleted.

4 changes: 0 additions & 4 deletions sentry.properties

This file was deleted.

8 changes: 0 additions & 8 deletions sentry.server.config.js

This file was deleted.