From 3d9dd2ee1ce2e2735f1bd0aee77f21d144819115 Mon Sep 17 00:00:00 2001 From: emallson Date: Wed, 3 Apr 2024 12:07:12 -0400 Subject: [PATCH] actually enable sentry when runnning in prod --- package.json | 2 +- src/init.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index ba90f7d..d7f1e9c 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "start": "nodemon --ext ts --watch src --exec \"yarn build && yarn prod\"", "test": "jest", "build": "tsc", - "prod": "node build/commands/registerCommands.js && node --harmony build/index.js" + "prod": "node build/commands/registerCommands.js && NODE_ENV=production node --harmony build/index.js" }, "dependencies": { "@discordjs/rest": "^1.1.0", diff --git a/src/init.ts b/src/init.ts index 3bd74dc..ff1e2e3 100644 --- a/src/init.ts +++ b/src/init.ts @@ -15,4 +15,6 @@ if (process.env.NODE_ENV === 'production') { Raven.config('https://669adafa75124f91bff5754d9c34b13a@o105799.ingest.sentry.io/253783', { captureUnhandledRejections: true }).install(); +} else { + console.log('Sentry is DISABLED'); }