build(ui): define version constant

This commit is contained in:
PBK Bin
2025-06-22 20:50:01 +08:00
committed by GitHub
parent 2aac79af54
commit 14a3f055ee
3 changed files with 40 additions and 18 deletions
+3 -1
View File
@@ -1 +1,3 @@
export const version = "v0.3.18";
// .env > git tag > v0.0.0-beta
// https://vite.dev/guide/env-and-mode.html#env-variables
export const version = import.meta.env.VITE_APP_VERSION || __APP_VERSION__ || "v0.0.0-dev";