Skip to content

Commit 572fc2e

Browse files
committed
readme: improve
1 parent 636d7f2 commit 572fc2e

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

packages/vike-react-sentry/README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,22 @@ export default {
8484
}
8585
```
8686

87+
```ts
88+
interface SentryOptions {
89+
dsn?: string // Sentry DSN (can also use PUBLIC_ENV__SENTRY_DSN env var)
90+
environment?: string // Environment name (e.g., 'production', 'staging')
91+
release?: string // Release version
92+
debug?: boolean // Enable debug mode
93+
sampleRate?: number // Error sample rate (0.0 to 1.0)
94+
tracesSampleRate?: number // Transaction sample rate (0.0 to 1.0)
95+
enabled?: boolean // Enable/disable Sentry
96+
maxBreadcrumbs?: number // Maximum number of breadcrumbs
97+
sendDefaultPii?: boolean // Send default PII data
98+
replaysSessionSampleRate?: number // Session replay sample rate (0.0 to 1.0, client only)
99+
replaysOnErrorSampleRate?: number // Replay-on-error sample rate (0.0 to 1.0, client only)
100+
}
101+
```
102+
87103
> [!NOTE]
88104
> See also: [Vike > Config Files](https://vike.dev/config)
89105
@@ -108,7 +124,7 @@ export default async () => {
108124
> [!NOTE]
109125
> See also: [Vike > `getGlobalContext()`](https://vike.dev/getGlobalContext)
110126
111-
You can define settings only on the client- or server-side:
127+
You can define settings only for the client- or server-side:
112128

113129
```js
114130
// pages/+sentry.client.js
@@ -139,22 +155,6 @@ export default () => {
139155
> [!NOTE]
140156
> See also: [Vike > File Environment (`.server.js`, `.client.js`, ...)](https://vike.dev/file-env)
141157
142-
```ts
143-
interface SentryOptions {
144-
dsn?: string // Sentry DSN (can also use PUBLIC_ENV__SENTRY_DSN env var)
145-
environment?: string // Environment name (e.g., 'production', 'staging')
146-
release?: string // Release version
147-
debug?: boolean // Enable debug mode
148-
sampleRate?: number // Error sample rate (0.0 to 1.0)
149-
tracesSampleRate?: number // Transaction sample rate (0.0 to 1.0)
150-
enabled?: boolean // Enable/disable Sentry
151-
maxBreadcrumbs?: number // Maximum number of breadcrumbs
152-
sendDefaultPii?: boolean // Send default PII data
153-
replaysSessionSampleRate?: number // Session replay sample rate (0.0 to 1.0, client only)
154-
replaysOnErrorSampleRate?: number // Replay-on-error sample rate (0.0 to 1.0, client only)
155-
}
156-
```
157-
158158
### `+sentryVite`
159159

160160
Sentry Vite plugin configuration for source map upload.

0 commit comments

Comments
 (0)