You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Initialize Sentry Client-Side and Server-Side SDKs
89
89
90
-
Create three files in your application's root directory: `sentry.server.config.(js|ts)`, `sentry.edge.config.(js|ts)`, and `instrumentation-client.(js|ts)`. Add the following initialization code into each respective file:
90
+
Create three files in your application's root directory:
91
+
-`sentry.server.config.(js|ts)`
92
+
-`sentry.edge.config.(js|ts)`
93
+
-`instrumentation-client.(js|ts)`
94
+
- If you previously had a file called `sentry.client.config.(js|ts)`, you can safely rename this to `instrumentation-client.(js|ts)` for all Next.js versions.
95
+
96
+
Add the following initialization code into each respective file:
91
97
92
98
<Alertlevel="info"title="Note">
93
99
These files run in different environments (browser, server, edge) and are
Set `tracesSampleRate` in your config files, `instrumentation-client.js`, `sentry.server.config.js`, and `sentry.edge.config.js`:
1
+
Set `tracesSampleRate` in your config files:
2
+
-`sentry.server.config.js`
3
+
-`sentry.edge.config.js`:
4
+
-`instrumentation-client.js`
5
+
- If you previously had a file called `sentry.client.config.(js|ts)`, you can safely rename this to `instrumentation-client.(js|ts)` for all Next.js versions.
0 commit comments