From 34aa60266628fdc79b96b19ed241b7efee412227 Mon Sep 17 00:00:00 2001 From: Jalil Arfaoui Date: Tue, 16 Apr 2024 18:28:03 +0200 Subject: [PATCH] =?UTF-8?q?chore:=20g=C3=A9n=C3=A8re=20correctement=20la?= =?UTF-8?q?=20release=20Sentry=20m=C3=AAme=20si=20slash=20dans=20branche?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/vite.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site/vite.config.ts b/site/vite.config.ts index d61c218c2..62cd376fa 100644 --- a/site/vite.config.ts +++ b/site/vite.config.ts @@ -20,7 +20,8 @@ const branch = (mode: string) => getBranch(mode) const sentryReleaseName = (mode: string) => env(mode).VITE_GITHUB_SHA - ? `${branch(mode)}-` + env(mode).VITE_GITHUB_SHA?.substring(0, 7) + ? `${branch(mode).split('/').at(-1)}-` + + env(mode).VITE_GITHUB_SHA?.substring(0, 7) : undefined export default defineConfig(({ command, mode }) => ({