We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78ec3a0 commit 77a741cCopy full SHA for 77a741c
packages/nuxt/README.md
@@ -67,11 +67,13 @@ export default defineNuxtConfig({
67
```javascript
68
import * as Sentry from '@sentry/nuxt';
69
70
-Sentry.init({
71
- dsn: env.DSN,
72
- replaysSessionSampleRate: 0.1,
73
- replaysOnErrorSampleRate: 1.0,
74
-});
+if (!import.meta.env.SSR) {
+ Sentry.init({
+ dsn: env.DSN,
+ replaysSessionSampleRate: 0.1,
+ replaysOnErrorSampleRate: 1.0,
75
+ });
76
+}
77
```
78
79
### 3. Server-side Setup
packages/nuxt/src/index.server.ts
@@ -0,0 +1 @@
1
+export {}
0 commit comments