mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Added Node environment to Sentry metadata
no issue - this allows us to differentiate between development and production
This commit is contained in:
parent
ce48d36a49
commit
9a962368dc
1 changed files with 3 additions and 1 deletions
|
@ -8,9 +8,11 @@ const expressNoop = function (req, res, next) {
|
|||
if (sentryConfig && !sentryConfig.disabled) {
|
||||
const Sentry = require('@sentry/node');
|
||||
const version = require('../server/lib/ghost-version').full;
|
||||
const environment = config.get('env');
|
||||
Sentry.init({
|
||||
dsn: sentryConfig.dsn,
|
||||
release: 'ghost@' + version
|
||||
release: 'ghost@' + version,
|
||||
environment: environment
|
||||
});
|
||||
|
||||
module.exports = {
|
||||
|
|
Loading…
Reference in a new issue