perf: dynamic import for sentry CaptureException (#19730)
This commit is contained in:
1 parent
11267e9359
commit
65898f29eb
3 files changed
+7
-6
No files matched your search
@@ -1,5 +1,3 @@
|
||||
import { captureException } from "@sentry/nextjs";
|
||||
|
||||
import db from "@calcom/prisma";
|
||||
|
||||
import type { IUsersRepository } from "./users.repository.interface";
|
||||
@@ -13,6 +11,7 @@ export class UsersRepository implements IUsersRepository {
|
||||
});
|
||||
return user;
|
||||
} catch (err) {
|
||||
const captureException = (await import("@sentry/nextjs")).captureException;
|
||||
captureException(err);
|
||||
throw err;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user