Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/modern-walls-argue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'gitbook': patch
---

Set Sentry release
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ jobs:
SENTRY_ORG: ${{ vars.SENTRY_ORG }}
SENTRY_PROJECT: ${{ vars.SENTRY_PROJECT }}
SENTRY_DSN: ${{ vars.SENTRY_DSN }}
SENTRY_RELEASE: ${{ github.sha }}
- id: deploy
name: Deploy to Cloudflare
uses: cloudflare/wrangler-action@v3.11.0
Expand Down
1 change: 1 addition & 0 deletions packages/gitbook/sentry.client.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ if (dsn) {
const client = new BrowserClient({
debug: false,
dsn,
release: process.env.SENTRY_RELEASE,
integrations: [
dedupeIntegration(),
functionToStringIntegration(),
Expand Down
1 change: 1 addition & 0 deletions packages/gitbook/sentry.edge.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ if (dsn) {
init({
debug: false,
dsn,
release: process.env.SENTRY_RELEASE,

sampleRate: 0.1,

Expand Down
1 change: 1 addition & 0 deletions packages/gitbook/sentry.server.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ if (dsn) {
init({
debug: false,
dsn,
release: process.env.SENTRY_RELEASE,

sampleRate: 0.1,

Expand Down
Loading