-
-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix/broken-article-query
- Loading branch information
Showing
11 changed files
with
21,485 additions
and
22,509 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import * as Sentry from "@sentry/nextjs"; | ||
|
||
const SENTRY_DSN = process.env.SENTRY_DSN || process.env.NEXT_PUBLIC_SENTRY_DSN; | ||
const SENTRY_ENVIRONMENT = process.env.SENTRY_ENVIRONMENT; | ||
|
||
export function register() { | ||
if (process.env.NEXT_RUNTIME === "nodejs") { | ||
// this is your Sentry.init call from `sentry.server.config.js|ts` | ||
Sentry.init({ | ||
dsn: SENTRY_DSN, | ||
// Adjust this value in production, or use tracesSampler for greater control | ||
tracesSampleRate: 1, | ||
environment: SENTRY_ENVIRONMENT, | ||
}); | ||
} | ||
|
||
// This is your Sentry.init call from `sentry.edge.config.js|ts` | ||
if (process.env.NEXT_RUNTIME === "edge") { | ||
Sentry.init({ | ||
dsn: SENTRY_DSN, | ||
// Adjust this value in production, or use tracesSampler for greater control | ||
tracesSampleRate: 1, | ||
environment: SENTRY_ENVIRONMENT, | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.