Simplify webapp sentry configuration

If commit is set, use it as `release`.
This commit is contained in:
roschaefer 2019-08-19 21:43:22 +02:00
parent fcb944b7c4
commit 07a90b8865
2 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,3 @@
MAPBOX_TOKEN="pk.eyJ1IjoiaHVtYW4tY29ubmVjdGlvbiIsImEiOiJjajl0cnBubGoweTVlM3VwZ2lzNTNud3ZtIn0.KZ8KK9l70omjXbEkkbHGsQ"
SENTRY_DSN_WEBAPP=
SENTRY_PUBLISH_RELEASE=false
COMMIT=

View File

@ -192,6 +192,7 @@ module.exports = {
sentry: {
dsn: process.env.SENTRY_DSN_WEBAPP,
publishRelease: !!process.env.COMMIT,
config: additionalSentryConfig,
},