Skip to content

armgit / VERT

Public Imported from GitHub
0

The next-generation file converter. Open source, fully local* and free forever.

fix: shorten coolify commit hash

Maya508804011259
diff --git a/vite.config.ts b/vite.config.ts
index 5751692..d6ebd1e 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -6,7 +6,9 @@ import wasm from "vite-plugin-wasm";
import { execSync } from "child_process";
// coollify removes the .git folder but exposes commit via SOURCE_COMMIT env variable
-let commitHash = process.env.SOURCE_COMMIT || "unknown";
+let commitHash = process.env.SOURCE_COMMIT
+ ? process.env.SOURCE_COMMIT.substring(0, 7) // shorten it lol
+ : "unknown";
if (commitHash === "unknown") {
try {