Skip to content

Commit a19e33e

Browse files
authored
feat: support process.env.SENTRY_RELEASE (#2776)
1 parent 8e6f3d1 commit a19e33e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/gatsby/gatsby-node.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ exports.onCreateWebpackConfig = ({ plugins, actions }) => {
33
plugins: [
44
plugins.define({
55
__SENTRY_RELEASE__: JSON.stringify(
6-
// GitHub Actions - https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables#default-environment-variables
7-
process.env.GITHUB_SHA ||
6+
process.env.SENTRY_RELEASE ||
7+
// GitHub Actions - https://help.github.com/en/actions/configuring-and-managing-workflows/using-environment-variables#default-environment-variables
8+
process.env.GITHUB_SHA ||
89
// Netlify - https://docs.netlify.com/configure-builds/environment-variables/#build-metadata
910
process.env.COMMIT_REF ||
1011
// Vercel - https://vercel.com/docs/v2/build-step#system-environment-variables

0 commit comments

Comments
 (0)