fix(vite): missing build id in Deno Deploy EA (#3414)

Fixes https://github.com/denoland/fresh/issues/3282
This commit is contained in:
Marvin Hagemeister
2025-09-12 15:24:26 +02:00
committed by GitHub
parent e06f03ac67
commit 8a996a428a
+3 -1
View File
@@ -43,7 +43,9 @@ export function setBuildId(id) {
export async function getBuildId(dev: boolean): Promise<string> {
const gitRevision = Deno.env.get("DENO_DEPLOYMENT_ID") ??
Deno.env.get("GITHUB_SHA") ?? Deno.env.get("CI_COMMIT_SHA");
Deno.env.get("DENO_DEPLOY_BUILD_ID") ??
Deno.env.get("GITHUB_SHA") ??
Deno.env.get("CI_COMMIT_SHA");
if (gitRevision !== undefined) {
return gitRevision.trim();
}