Merged in feat/add-version-to-responses (pull request #2118)

feature: add a version tag to responses SW-2792

* feature: add a version tag to responses


Approved-by: Linus Flood
This commit is contained in:
Joakim Jäderberg
2025-05-16 11:38:41 +00:00
parent 61814698ee
commit f40a666170
8 changed files with 21 additions and 2 deletions

View File

@@ -303,6 +303,10 @@ export const env = {
..._env,
NEW_SITE_LIVE_STATUS: getLiveStatus(_env),
isLangLive: (lang: Lang) => isLangLive(lang, _env.NEW_SITE_LIVE_FOR_LANGS),
VERSION:
process.env.NODE_ENV === "development"
? "development"
: (_env.GIT_SHA ?? "unknown"),
} as const
function replaceTopLevelDomain(url: string, domain: string) {