Skip to content

Commit 77a741c

Browse files
committed
add empty server.index (needed for test)
1 parent 78ec3a0 commit 77a741c

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

packages/nuxt/README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,13 @@ export default defineNuxtConfig({
6767
```javascript
6868
import * as Sentry from '@sentry/nuxt';
6969

70-
Sentry.init({
71-
dsn: env.DSN,
72-
replaysSessionSampleRate: 0.1,
73-
replaysOnErrorSampleRate: 1.0,
74-
});
70+
if (!import.meta.env.SSR) {
71+
Sentry.init({
72+
dsn: env.DSN,
73+
replaysSessionSampleRate: 0.1,
74+
replaysOnErrorSampleRate: 1.0,
75+
});
76+
}
7577
```
7678
7779
### 3. Server-side Setup

packages/nuxt/src/index.server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {}

0 commit comments

Comments
 (0)