fix(vite): missing build id in Deno Deploy EA (#3414)
Fixes https://github.com/denoland/fresh/issues/3282
This commit is contained in:
@@ -43,7 +43,9 @@ export function setBuildId(id) {
|
|||||||
|
|
||||||
export async function getBuildId(dev: boolean): Promise<string> {
|
export async function getBuildId(dev: boolean): Promise<string> {
|
||||||
const gitRevision = Deno.env.get("DENO_DEPLOYMENT_ID") ??
|
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) {
|
if (gitRevision !== undefined) {
|
||||||
return gitRevision.trim();
|
return gitRevision.trim();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user