perf: Remove dynamic imports of Sentry (#20545)

This commit is contained in:
Keith Williams authored and GitHub committed 2025-04-04 13:22:27 +00:00
1 parent ddde762f9b
commit 3d583678cf
6 files changed
+10 -11

No files matched your search

+2 -1
View File
@@ -1,3 +1,5 @@
import { captureException } from "@sentry/nextjs";
import db from "@calcom/prisma";
import type { IUsersRepository } from "./users.repository.interface";
@@ -11,7 +13,6 @@ export class UsersRepository implements IUsersRepository {
});
return user;
} catch (err) {
const captureException = (await import("@sentry/nextjs")).captureException;
captureException(err);
throw err;
}