mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-24 19:32:07 +00:00
Set Sentry release (#2682)
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'gitbook': patch
|
||||
---
|
||||
|
||||
Set Sentry release
|
||||
@@ -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
|
||||
|
||||
@@ -21,6 +21,7 @@ if (dsn) {
|
||||
const client = new BrowserClient({
|
||||
debug: false,
|
||||
dsn,
|
||||
release: process.env.SENTRY_RELEASE,
|
||||
integrations: [
|
||||
dedupeIntegration(),
|
||||
functionToStringIntegration(),
|
||||
|
||||
@@ -5,6 +5,7 @@ if (dsn) {
|
||||
init({
|
||||
debug: false,
|
||||
dsn,
|
||||
release: process.env.SENTRY_RELEASE,
|
||||
|
||||
sampleRate: 0.1,
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ if (dsn) {
|
||||
init({
|
||||
debug: false,
|
||||
dsn,
|
||||
release: process.env.SENTRY_RELEASE,
|
||||
|
||||
sampleRate: 0.1,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user