File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
platform-includes/getting-started-config Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -51,14 +51,15 @@ Sentry.init({
51
51
});
52
52
```
53
53
54
- 2 . Add an ` --import ` flag to the ` NODE_OPTIONS ` environment variable wherever you run your application.
54
+ 2 . Add an ` --import ` flag to the ` NODE_OPTIONS ` environment variable wherever you run your application's production build output .
55
55
For local previews, update your ` nuxt preview ` script in the ` package.json ` (see below).
56
56
Also, ensure this environment variable is set in your deployment environment, such as on Netlify or Vercel.
57
57
58
58
``` json {filename:package.json}
59
59
{
60
60
"scripts" : {
61
- "preview" : " NODE_OPTIONS='--import ./public/instrument.server.mjs' nuxt preview"
61
+ "preview" : " NODE_OPTIONS='--import ./public/instrument.server.mjs' nuxt preview" ,
62
+ "start" : " node --import .output/public/instrument.server.mjs .output/server/index.mjs"
62
63
}
63
64
}
64
65
```
You can’t perform that action at this time.
0 commit comments