0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Switched Sentry to use helper file for Ghost version

no issue
This commit is contained in:
Daniel Lockyer 2020-03-26 15:35:46 +00:00
parent 1acbe3e51a
commit 4f01bb34f9

View file

@ -7,7 +7,7 @@ const expressNoop = function (req, res, next) {
if (sentryConfig && !sentryConfig.disabled) { if (sentryConfig && !sentryConfig.disabled) {
const Sentry = require('@sentry/node'); const Sentry = require('@sentry/node');
const version = require('../../package.json').version; const version = require('./lib/ghost-version').full;
Sentry.init({ Sentry.init({
dsn: sentryConfig.dsn, dsn: sentryConfig.dsn,
release: 'ghost@' + version release: 'ghost@' + version