perf: Remove dynamic imports of Sentry (#20545)
This commit is contained in:
1 parent
ddde762f9b
commit
3d583678cf
6 files changed
+10
-11
No files matched your search
@@ -1,3 +1,5 @@
|
||||
import { captureException } from "@sentry/nextjs";
|
||||
|
||||
import { redactError } from "@calcom/lib/redactError";
|
||||
|
||||
import { middleware } from "../trpc";
|
||||
@@ -9,7 +11,6 @@ const captureErrorsMiddleware = middleware(async ({ next }) => {
|
||||
if (!cause) {
|
||||
return result;
|
||||
}
|
||||
const { captureException } = await import("@sentry/nextjs");
|
||||
captureException(cause);
|
||||
throw redactError(cause);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user