Skip to content

Commit e1018b6

Browse files
andreiborzachargome
andcommitted
Update packages/solidstart/README.md
Co-authored-by: Charly Gomez <[email protected]>
1 parent 8058fe3 commit e1018b6

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

packages/solidstart/README.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ render(
166166

167167
To generate and upload source maps of your Solid Start app use our Vite bundler plugin.
168168

169-
1. Install the Sentry vite plugin
170-
169+
1. Install the Sentry Vite plugin
170+
171171
```bash
172172
# Using npm
173173
npm install @sentry/vite-plugin --save-dev
@@ -177,10 +177,14 @@ yarn add @sentry/vite-plugin --dev
177177
```
178178

179179
2. Configure the vite plugin
180-
181-
To upload source maps you have to configure an auth token. Auth tokens can be passed to the plugin explicitly with the `authToken` option, with a `SENTRY_AUTH_TOKEN` environment variable, or with an `.env.sentry-build-plugin` file in the working directory when building your project. We recommend you add the auth token to your CI/CD environment as an environment variable.
182180

183-
Learn more about configuring the plugin in our [Sentry Vite Plugin documentation](https://www.npmjs.com/package/@sentry/vite-plugin).
181+
To upload source maps you have to configure an auth token. Auth tokens can be passed to the plugin explicitly with the
182+
`authToken` option, with a `SENTRY_AUTH_TOKEN` environment variable, or with an `.env.sentry-build-plugin` file in the
183+
working directory when building your project. We recommend you add the auth token to your CI/CD environment as an
184+
environment variable.
185+
186+
Learn more about configuring the plugin in our
187+
[Sentry Vite Plugin documentation](https://www.npmjs.com/package/@sentry/vite-plugin).
184188

185189
```bash
186190
// .env.sentry-build-plugin
@@ -192,13 +196,13 @@ SENTRY_PROJECT=<your project name>
192196
3. Finally, add the plugin to your `app.config.ts` file.
193197

194198
```javascript
195-
import { defineConfig } from '@solidjs/start/config'
196-
import { sentryVitePlugin } from '@sentry/vite-plugin'
199+
import { defineConfig } from '@solidjs/start/config';
200+
import { sentryVitePlugin } from '@sentry/vite-plugin';
197201

198202
export default defineConfig({
199203
// rest of your config
200204
// ...
201-
205+
202206
vite: {
203207
build: {
204208
sourcemap: true,
@@ -211,5 +215,5 @@ export default defineConfig({
211215
}),
212216
],
213217
},
214-
})
215-
```
218+
});
219+
```

0 commit comments

Comments
 (0)