From 07a90b8865bc26898315f62a910691315b492bb0 Mon Sep 17 00:00:00 2001 From: roschaefer Date: Mon, 19 Aug 2019 21:43:22 +0200 Subject: [PATCH] Simplify webapp sentry configuration If commit is set, use it as `release`. --- webapp/.env.template | 1 - webapp/nuxt.config.js | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/.env.template b/webapp/.env.template index 6a337ef54..bebdeaaaf 100644 --- a/webapp/.env.template +++ b/webapp/.env.template @@ -1,4 +1,3 @@ MAPBOX_TOKEN="pk.eyJ1IjoiaHVtYW4tY29ubmVjdGlvbiIsImEiOiJjajl0cnBubGoweTVlM3VwZ2lzNTNud3ZtIn0.KZ8KK9l70omjXbEkkbHGsQ" SENTRY_DSN_WEBAPP= -SENTRY_PUBLISH_RELEASE=false COMMIT= diff --git a/webapp/nuxt.config.js b/webapp/nuxt.config.js index 00bd701ee..ad026b1c7 100644 --- a/webapp/nuxt.config.js +++ b/webapp/nuxt.config.js @@ -192,6 +192,7 @@ module.exports = { sentry: { dsn: process.env.SENTRY_DSN_WEBAPP, + publishRelease: !!process.env.COMMIT, config: additionalSentryConfig, },