mirror of
https://github.com/hanzoai/calendar.git
synced 2026-09-24 22:42:24 +00:00
16 lines
321 B
TypeScript
16 lines
321 B
TypeScript
import * as Sentry from "@sentry/nextjs";
|
|
|
|
export function register() {
|
|
if (process.env.NEXT_RUNTIME === "nodejs") {
|
|
Sentry.init({
|
|
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
|
|
});
|
|
}
|
|
|
|
if (process.env.NEXT_RUNTIME === "edge") {
|
|
Sentry.init({
|
|
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
|
|
});
|
|
}
|
|
}
|