Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix(frontend): prevent duplicated 'v' in on-prem version badge

Erwan Hervécb8b00c949de
diff --git a/frontend/src/config/env.ts b/frontend/src/config/env.ts
index 63446c95f9..1841905872 100644
--- a/frontend/src/config/env.ts
+++ b/frontend/src/config/env.ts
@@ -28,6 +28,9 @@ export const envConfig = {
},
get PLATFORM_VERSION() {
- return import.meta.env.VITE_INFISICAL_PLATFORM_VERSION;
+ // Release tags (e.g. "v0.159.15") are passed through as INFISICAL_PLATFORM_VERSION
+ // by the release workflow. Strip any leading "v" so consumers can prefix it
+ // themselves without producing "vv0.159.15".
+ return import.meta.env.VITE_INFISICAL_PLATFORM_VERSION?.replace(/^v/i, "");
}
};