From d61eae38164c04aa13ed8f68ee83014b1c2c4259 Mon Sep 17 00:00:00 2001 From: Tobias Kohr Date: Tue, 7 Nov 2023 10:12:31 +0100 Subject: [PATCH] fix(version): set same env.version for prod as for dev this should fix the datahub latest build to point to the main web component dist branch instead of a version that does not exist yet --- apps/datahub/src/environments/environment.prod.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/datahub/src/environments/environment.prod.ts b/apps/datahub/src/environments/environment.prod.ts index 8437293833..adea84dab3 100644 --- a/apps/datahub/src/environments/environment.prod.ts +++ b/apps/datahub/src/environments/environment.prod.ts @@ -1,5 +1,8 @@ import packageJson from '../../../../package.json' export const environment = { production: true, - version: `v${packageJson.version.split('-')[0]}`, + version: + packageJson.version.split('-')[1] === 'dev' + ? 'main' + : `v${packageJson.version}`, }