forked from gulfofmaine/Neracoos-1-Buoy-App
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsentry.edge.config.ts
26 lines (20 loc) · 1.01 KB
/
sentry.edge.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// This file configures the initialization of Sentry for edge features (middleware, edge routes, and so on).
// The config you add here will be used whenever one of the edge features is loaded.
// Note that this config is unrelated to the Vercel Edge Runtime and is also required when running locally.
// https://docs.sentry.io/platforms/javascript/guides/nextjs/
import * as Sentry from "@sentry/nextjs"
/**
* Load our package.json so that we can access the version
* and allow Sentry to track errors in relation to the version used
*/
// tslint:disable-next-line:no-var-requires
const packageJson = require("./package.json")
Sentry.init({
dsn: process.env.NEXT_PUBLIC_SENTRY_DSN ?? "__dsn__",
spotlight: process.env.NODE_ENV === "development",
release: `v${packageJson.version}`,
// Adjust this value in production, or use tracesSampler for greater control
tracesSampleRate: 0.05,
// Setting this option to true will print useful information to the console while you're setting up Sentry.
debug: false,
})