mirror of
https://github.com/VERT-sh/VERT.git
synced 2026-01-07 08:50:13 -06:00
fix: shorten coolify commit hash
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user