From 9a962368dc1ab1c65405e7547a4099ffb5bf9d32 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Mon, 27 Apr 2020 19:59:09 +0100 Subject: [PATCH] Added Node environment to Sentry metadata no issue - this allows us to differentiate between development and production --- core/shared/sentry.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/shared/sentry.js b/core/shared/sentry.js index 0aa54839c0..777e58bbaf 100644 --- a/core/shared/sentry.js +++ b/core/shared/sentry.js @@ -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 = {