Skip to content

Commit

Permalink
actually enable sentry when runnning in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
emallson committed Apr 3, 2024
1 parent 6e0ae29 commit 3d9dd2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ if (process.env.NODE_ENV === 'production') {
Raven.config('https://[email protected]/253783', {
captureUnhandledRejections: true
}).install();
} else {
console.log('Sentry is DISABLED');
}

0 comments on commit 3d9dd2e

Please sign in to comment.