From 30045a60da3e9bf814499c5aad2f0a4ac11651f2 Mon Sep 17 00:00:00 2001 From: Arnaud AMBROSELLI Date: Thu, 21 Sep 2023 12:53:38 +0200 Subject: [PATCH] Revert "fix: disable sourcemap while sentry down" This reverts commit f7f0cb37ed98649fb930c061ec24afe9304991dc. --- dashboard/Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dashboard/Dockerfile b/dashboard/Dockerfile index 756985946..bfc9b96e2 100644 --- a/dashboard/Dockerfile +++ b/dashboard/Dockerfile @@ -16,7 +16,11 @@ COPY dashboard/. . ENV NODE_ENV=production RUN --mount=type=secret,id=sentry_auth_token \ - yarn build; + yarn build; \ + if [ -f "/run/secrets/sentry_auth_token" ]; then \ + export SENTRY_AUTH_TOKEN=$(cat /run/secrets/sentry_auth_token); \ + yarn sentry:sourcemaps; \ + fi FROM ghcr.io/socialgouv/docker/nginx4spa:7.0.1