fix: not using SENTRY_RELEASE env

This commit is contained in:
wonderlandpark 2021-04-13 13:56:37 +09:00
parent fbe1115508
commit 6b5251d684
No known key found for this signature in database
GPG Key ID: E3E650B146478C64

View File

@ -34,7 +34,6 @@ module.exports = {
SENTRY_ORG && SENTRY_ORG &&
SENTRY_PROJECT && SENTRY_PROJECT &&
SENTRY_AUTH_TOKEN && SENTRY_AUTH_TOKEN &&
SENTRY_RELEASE &&
VERSION && VERSION &&
NODE_ENV === 'production' NODE_ENV === 'production'
) { ) {
@ -45,7 +44,7 @@ module.exports = {
ignore: ['node_modules'], ignore: ['node_modules'],
stripPrefix: ['webpack://_N_E/'], stripPrefix: ['webpack://_N_E/'],
urlPrefix: `~${basePath}/_next`, urlPrefix: `~${basePath}/_next`,
release: `${SENTRY_RELEASE === 'stable' ? VERSION : SOURCE_COMMIT || VERSION}-${SOURCE_BRANCH || SENTRY_RELEASE}`, release: `${SOURCE_BRANCH === 'stable' ? VERSION : SOURCE_COMMIT || VERSION}-${SOURCE_BRANCH || SENTRY_RELEASE}`,
}) })
) )
} }