From 7251a1b39b62e4bf568a0dbb475c863aca9fbb19 Mon Sep 17 00:00:00 2001 From: Gajus Kuizinas Date: Fri, 24 Jul 2020 16:21:58 -0500 Subject: [PATCH] feat: support process.env.SENTRY_RELEASE --- packages/gatsby/gatsby-node.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/gatsby/gatsby-node.js b/packages/gatsby/gatsby-node.js index 258e53b60dbe..8b43eaf215c5 100644 --- a/packages/gatsby/gatsby-node.js +++ b/packages/gatsby/gatsby-node.js @@ -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