allow setting version using SYNAPSE_ADMIN_VERSION
env var on build (if git is not available)
This commit is contained in:
@@ -9,7 +9,7 @@ export default defineConfig({
|
||||
react(),
|
||||
vitePluginVersionMark({
|
||||
name: "Synapse Admin",
|
||||
command: "git describe --tags || git rev-parse --short HEAD || echo 'unknown'",
|
||||
command: 'git describe --tags || git rev-parse --short HEAD || echo "${SYNAPSE_ADMIN_VERSION:-unknown}"',
|
||||
ifMeta: false,
|
||||
ifLog: false,
|
||||
ifGlobal: true,
|
||||
|
Reference in New Issue
Block a user