We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea853b2 commit 71bc1a8Copy full SHA for 71bc1a8
packages/core/src/v3/apiClientManager/index.ts
@@ -46,7 +46,11 @@ export class APIClientManagerAPI {
46
47
get branchName(): string | undefined {
48
const config = this.#getConfig();
49
- const value = config?.previewBranch ?? getEnvVar("TRIGGER_PREVIEW_BRANCH") ?? undefined;
+ const value =
50
+ config?.previewBranch ??
51
+ getEnvVar("TRIGGER_PREVIEW_BRANCH") ??
52
+ getEnvVar("VERCEL_GIT_COMMIT_REF") ??
53
+ undefined;
54
return value ? value : undefined;
55
}
56
0 commit comments