From 7afce71bef6b8a17ef347a53e4b72d662f6c61de Mon Sep 17 00:00:00 2001 From: Aine Date: Thu, 31 Oct 2024 17:11:27 +0200 Subject: [PATCH] handle envs without git in the build hook --- vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index e8ec15c..c759a32 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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,