Some checks failed
Build & Deploy / 🔍 Prepare Environment (push) Successful in 4s
Build & Deploy / 🧪 QA (push) Failing after 39s
Build & Deploy / 🏗️ Build (push) Failing after 30s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🔔 Notifications (push) Successful in 2s
14 lines
382 B
TypeScript
14 lines
382 B
TypeScript
import * as Sentry from "@sentry/nextjs";
|
|
import { config } from "./lib/config";
|
|
|
|
if (config.errors.glitchtip.enabled) {
|
|
Sentry.init({
|
|
dsn: config.errors.glitchtip.dsn,
|
|
tracesSampleRate: 1.0,
|
|
debug: config.isDevelopment,
|
|
environment: config.target || "production",
|
|
// Use the proxy path defined in config
|
|
tunnel: config.errors.glitchtip.proxyPath,
|
|
});
|
|
}
|