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: platform-includes/getting-started-config/javascript.solidstart.mdx
+1-1
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,7 @@ The Sentry SDK provides [middleware lifecycle](https://docs.solidjs.com/solid-st
53
53
Complete the setup by adding `sentryBeforeResponseMiddleware` to your `src/middleware.ts` file. If you don't have a `src/middleware.ts` file yet, create one:
To generate and upload source maps of your Solid Start app use our Vite bundler plugin.
3
+
To upload source maps, use the `sentrySolidStartVite` plugin from `@sentry/solidstart` and configure an auth token.
4
+
Auth tokens can be passed to the plugin explicitly with the `authToken` option. You can use the
5
+
`SENTRY_AUTH_TOKEN` environment variable or have an `.env.sentry-build-plugin` file in the working directory when
6
+
building your project.
4
7
5
-
### Install
8
+
We recommend you add the auth token to your CI/CD environment as an environment variable.
6
9
7
-
```bash {tabTitle:npm}
8
-
npm install --save-dev @sentry/vite-plugin
9
-
```
10
-
11
-
```bash {tabTitle:yarn}
12
-
yarn add --dev @sentry/vite-plugin
13
-
```
14
-
15
-
```bash {tabTitle:pnpm}
16
-
pnpm add --save-dev @sentry/vite-plugin
17
-
```
18
-
19
-
### Config
20
-
21
-
To get readable stack traces in your production builds, set the `SENTRY_AUTH_TOKEN` environment variable in your build environment. You can also add the environment variable to a `.env.sentry-build-plugin` file in the root of your project.
10
+
Learn more about configuring the plugin in our
11
+
[Sentry Vite Plugin documentation](https://www.npmjs.com/package/@sentry/vite-plugin).
0 commit comments