handle envs without git in the build hook

This commit is contained in:
Aine 2024-10-31 17:11:27 +02:00
parent fe4ba22a03
commit 7afce71bef
No known key found for this signature in database
GPG key ID: 34969C908CCA2804

View file

@ -9,7 +9,7 @@ export default defineConfig({
react(),
vitePluginVersionMark({
name: "Synapse Admin",
command: "git describe --tags || git rev-parse --short HEAD",
command: "git describe --tags || git rev-parse --short HEAD || echo 'unknown'",
ifMeta: false,
ifLog: false,
ifGlobal: true,