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
Copy file name to clipboardExpand all lines: docs/platforms/javascript/guides/tanstackstart-react/index.mdx
+10-12Lines changed: 10 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -138,30 +138,28 @@ Sentry.init({
138
138
});
139
139
```
140
140
141
-
#### Load Instrumentation on Startup
141
+
#### Moving the Sentry server config file for production usage
142
142
143
-
Add a `--import` flag directly or to the `NODE_OPTIONS` environment variable wherever you run your application to import `instrument.server.mjs`.
143
+
For production monitoring, the Sentry server config file needs to be moved to your build output. Since [TanStack Start is designed to work with any hosting provider](https://tanstack.com/start/latest/docs/framework/react/guide/hosting), the exact location will depend on where your build artifacts are deployed (for example, `"/dist"`, `".output/server"` or a platform-specific directory).
144
144
145
-
```json {filename:package.json}
145
+
For example, when using [nitro](https://nitro.build/), copy the instrumentation file to `".output/server"`.
146
+
147
+
```json {diff} {filename:package.json}
146
148
{
147
149
"scripts": {
148
-
"dev": "NODE_OPTIONS='--import ./instrument.server.mjs' vite dev --port 3000",
#### Moving the Sentry server config file for production usage
155
-
156
-
For production monitoring, the Sentry server config file needs to be moved to your build output. Since [TanStack Start is designed to work with any hosting provider](https://tanstack.com/start/latest/docs/framework/react/guide/hosting), the exact location will depend on where your build artifacts are deployed (for example, `"/dist"`, `".output/server"` or a platform-specific directory).
156
+
#### Load Instrumentation on Startup
157
157
158
-
For example, when using [nitro](https://nitro.build/), copy the instrumentation file to `".output/server"`.
158
+
Add a `--import` flag directly or to the `NODE_OPTIONS` environment variable wherever you run your application to import `instrument.server.mjs`.
0 commit comments