Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.
TypeScript i18nextnext-authnextjspostgresqlprismareact-emailt3-stacktailwindcsstrpcturborepotypescriptzod
🤖 Capture errors in sentry
Luke Vellafcf05b3daec2
diff --git a/apps/web/src/pages/api/trpc/[trpc].ts b/apps/web/src/pages/api/trpc/[trpc].tsindex 406db0d82..c9288acb4 100644--- a/apps/web/src/pages/api/trpc/[trpc].ts+++ b/apps/web/src/pages/api/trpc/[trpc].ts@@ -1,5 +1,6 @@import { createTRPCContext } from "@rallly/backend/trpc/context";import { AppRouter, appRouter } from "@rallly/backend/trpc/routers";+import * as Sentry from "@sentry/nextjs";import * as trpcNext from "@trpc/server/adapters/next";import { absoluteUrl, shortUrl } from "@/utils/absolute-url";@@ -36,4 +37,9 @@ export default trpcNext.createNextApiHandler<AppRouter>({shortUrl,});},+ onError({ error }) {+ if (error.code === "INTERNAL_SERVER_ERROR") {+ Sentry.captureException(error);+ }+ },});