From be9f0d9a58f8347d2b64d7bbf655276abe3045aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Berg=C3=A9?= Date: Tue, 7 Jan 2025 21:19:21 +0100 Subject: [PATCH] Fix pass Sentry release properly --- .changeset/dull-goats-jam.md | 5 +++++ packages/gitbook/next.config.js | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/dull-goats-jam.md diff --git a/.changeset/dull-goats-jam.md b/.changeset/dull-goats-jam.md new file mode 100644 index 0000000000..adba1f7694 --- /dev/null +++ b/.changeset/dull-goats-jam.md @@ -0,0 +1,5 @@ +--- +'gitbook': patch +--- + +Fix pass Sentry release properly diff --git a/packages/gitbook/next.config.js b/packages/gitbook/next.config.js index 70f394d712..58f2204ece 100644 --- a/packages/gitbook/next.config.js +++ b/packages/gitbook/next.config.js @@ -4,6 +4,7 @@ module.exports = withSentryConfig( { env: { BUILD_VERSION: (process.env.GITHUB_SHA ?? '').slice(0, 7), + SENTRY_RELEASE: process.env.SENTRY_RELEASE ?? '', SENTRY_DSN: process.env.SENTRY_DSN ?? '', SENTRY_ENVIRONMENT: process.env.SENTRY_ENVIRONMENT ?? 'development', GITBOOK_ASSETS_PREFIX: process.env.GITBOOK_ASSETS_PREFIX, @@ -67,6 +68,7 @@ module.exports = withSentryConfig( }, }, { + release: process.env.SENTRY_RELEASE, org: process.env.SENTRY_ORG, project: process.env.SENTRY_PROJECT, authToken: process.env.SENTRY_AUTH_TOKEN,