mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-05 18:40:56 +01:00
Ignore empty SENTRY_DSN
This commit is contained in:
parent
e1aa776598
commit
a1d14c7c69
1 changed files with 1 additions and 1 deletions
|
@ -348,7 +348,7 @@ export const cacheWrapper = async (
|
|||
const sentryWrapper = async (event: FetchEvent, test = false): Promise<void> => {
|
||||
let sentry: null | Toucan = null;
|
||||
|
||||
if (typeof SENTRY_DSN !== 'undefined' && !test) {
|
||||
if (typeof SENTRY_DSN !== 'undefined' && SENTRY_DSN && !test) {
|
||||
/* We use Toucan for Sentry. Toucan is a Sentry SDK designed for Cloudflare Workers / DOs */
|
||||
sentry = new Toucan({
|
||||
dsn: SENTRY_DSN,
|
||||
|
|
Loading…
Add table
Reference in a new issue