Skip to content

Commit

Permalink
feat(node): add cloudflare pages commit sha (#9751)
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig authored Dec 5, 2023
1 parent b51a807 commit 264e3e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/node/src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,8 @@ export function getSentryRelease(fallback?: string): string | undefined {
process.env.ZEIT_GITHUB_COMMIT_SHA ||
process.env.ZEIT_GITLAB_COMMIT_SHA ||
process.env.ZEIT_BITBUCKET_COMMIT_SHA ||
// Cloudflare Pages - https://developers.cloudflare.com/pages/platform/build-configuration/#environment-variables
process.env.CF_PAGES_COMMIT_SHA ||
fallback
);
}
Expand Down

0 comments on commit 264e3e3

Please sign in to comment.