fix: shorten coolify commit hash

This commit is contained in:
Maya 2025-12-19 21:50:03 +03:00
parent 4ee188cb72
commit 5088040112
No known key found for this signature in database
1 changed files with 3 additions and 1 deletions

View File

@ -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 {