From 1477e9c35cc0c2b2d7b199f2856cd8cc3ac793c8 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 12 Jun 2023 17:56:14 +0200 Subject: [PATCH] fix --- config/sentry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/sentry.php b/config/sentry.php index 9c9ef0b6f..c1ee3c3c7 100644 --- a/config/sentry.php +++ b/config/sentry.php @@ -7,7 +7,7 @@ // The release version of your application // Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD')) - 'release' => trim(exec('jq -r .coolify.v4.version ../versions.json')), + 'release' => config('app.env') === 'local' ? trim(exec('jq -r .coolify.v4.version ../versions.json')) : trim(exec('jq -r .coolify.v4.version versions.json')), // When left empty or `null` the Laravel environment will be used 'environment' => config('app.env'),