handle envs without git in the build hook
This commit is contained in:
@@ -9,7 +9,7 @@ export default defineConfig({
|
|||||||
react(),
|
react(),
|
||||||
vitePluginVersionMark({
|
vitePluginVersionMark({
|
||||||
name: "Synapse Admin",
|
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,
|
ifMeta: false,
|
||||||
ifLog: false,
|
ifLog: false,
|
||||||
ifGlobal: true,
|
ifGlobal: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user