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
We are currently investigating an issue where the server-side is not correctly initialized with a recent update of Nitro (the server-side toolkit in Nuxt).
15
32
We are working on figuring this out ([see issue here](https://github.com/getsentry/sentry-javascript/issues/14514)). As a temporary workaround, you can add the following overrides to your application:
@@ -38,22 +55,6 @@ We are working on figuring this out ([see issue here](https://github.com/getsent
38
55
You can also check out the guide for using the <PlatformLinkto="/install/cli-import//">CLI flag `--import`</PlatformLink> as this might be a better choice for you.
39
56
40
57
41
-
## Initializing Sentry with Dynamic `import()`
42
-
43
-
By default, the Sentry Nuxt SDK includes a Rollup plugin which wraps the server entry file with a dynamic `import()`.
44
-
With this, Sentry can be initialized before all other modules of the application.
45
-
46
-
The server entry file will look something like this:
47
-
48
-
```javascript {filename:.output/server/index.mjs}
49
-
// Note: file may have some imports and code related to debug IDs
Nuxt uses ES Modules for server-side builds, which requires Sentry to register Node [customization hooks](https://nodejs.org/api/module.html#customization-hooks).
10
10
Those customization hooks need to be registered before the rest of the application.
11
11
12
12
To be able to run Sentry before the rest of the application and fully monitor the server-side, Sentry can be initialized using one of those two approaches:
13
13
14
-
- Dynamically import server code after initializing Sentry (default)
15
-
- Preload Sentry configuration with the Node `--import` CLI flag
0 commit comments