Skip to content

Commit 264e3e3

Browse files
authored
feat(node): add cloudflare pages commit sha (#9751)
1 parent b51a807 commit 264e3e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/node/src/sdk.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ export function getSentryRelease(fallback?: string): string | undefined {
235235
process.env.ZEIT_GITHUB_COMMIT_SHA ||
236236
process.env.ZEIT_GITLAB_COMMIT_SHA ||
237237
process.env.ZEIT_BITBUCKET_COMMIT_SHA ||
238+
// Cloudflare Pages - https://developers.cloudflare.com/pages/platform/build-configuration/#environment-variables
239+
process.env.CF_PAGES_COMMIT_SHA ||
238240
fallback
239241
);
240242
}

0 commit comments

Comments
 (0)