Skip to content

Commit

Permalink
feat: add cloudflare pages commit sha
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Dec 5, 2023
1 parent 4044447 commit a80b767
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 a80b767

Please sign in to comment.