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,
|
|
});
|
|
}
|
|
}
|