Skip to content

Commit 1b8a47d

Browse files
s1gr1dchargome
andauthored
docs(nuxt): Describe run script more precisely (#11064)
* docs(nuxt): Describe run script more precisely * Update platform-includes/getting-started-config/javascript.nuxt.mdx Co-authored-by: Charly Gomez <[email protected]> --------- Co-authored-by: Charly Gomez <[email protected]>
1 parent 993cf71 commit 1b8a47d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

platform-includes/getting-started-config/javascript.nuxt.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,15 @@ Sentry.init({
5151
});
5252
```
5353

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.
5555
For local previews, update your `nuxt preview` script in the `package.json` (see below).
5656
Also, ensure this environment variable is set in your deployment environment, such as on Netlify or Vercel.
5757

5858
```json {filename:package.json}
5959
{
6060
"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"
6263
}
6364
}
6465
```

0 commit comments

Comments
 (0)