Skip to content

Commit

Permalink
feat: support process.env.SENTRY_RELEASE (#2776)
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus authored Jul 26, 2020
1 parent 8e6f3d1 commit a19e33e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/gatsby/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ exports.onCreateWebpackConfig = ({ plugins, actions }) => {
plugins: [
plugins.define({
__SENTRY_RELEASE__: JSON.stringify(
// GitHub Actions - https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables#default-environment-variables
process.env.GITHUB_SHA ||
process.env.SENTRY_RELEASE ||
// GitHub Actions - https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables#default-environment-variables
process.env.GITHUB_SHA ||
// Netlify - https://docs.netlify.com/configure-builds/environment-variables/#build-metadata
process.env.COMMIT_REF ||
// Vercel - https://vercel.com/docs/v2/build-step#system-environment-variables
Expand Down

0 comments on commit a19e33e

Please sign in to comment.