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
As an alternative to passing options explicitly, you can also use a `.sentryclirc` file or environment variables as described in https://docs.sentry.io/product/cli/configuration/.
52
+
53
+
## Configuration
19
54
20
55
Every plugin takes an options argument with the following properties:
As an alternative to passing options explicitly, you can also use a `.sentryclirc` file or environment variables as described in https://docs.sentry.io/product/cli/configuration/.
52
+
53
+
## Configuration
19
54
20
55
Every plugin takes an options argument with the following properties:
21
56
@@ -34,7 +69,7 @@ Every plugin takes an options argument with the following properties:
34
69
| cleanArtifacts |`boolean`| optional | Remove all existing artifacts in the Sentry release before uploading sourcemaps. Defaults to `false`. |
35
70
| errorHandler |`function(err: Error): void`| optional | Function that is called when an error occurs during rlease creation or sourcemaps upload. When this function is provided, thrown errors will not cause the process to abort. If you still want to abort the process you can throw an error in the function. |
Copy file name to clipboardExpand all lines: packages/vite-plugin/README.md
+37-2Lines changed: 37 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,42 @@ A Vite plugin that provides release management features for Sentry:
15
15
- Automatic release name discovery (based on CI environment - Vercel, AWS, Heroku, CircleCI, or current Git SHA)
16
16
- Automatically association of errors with releases (Release injection)
17
17
18
-
### Configuration
18
+
## Installation
19
+
20
+
Using npm:
21
+
22
+
```bash
23
+
$ npm install @sentry/vite-plugin --save-dev
24
+
```
25
+
26
+
Using yarn:
27
+
28
+
```bash
29
+
$ yarn add @sentry/vite-plugin --dev
30
+
```
31
+
32
+
## Usage
33
+
34
+
```ts
35
+
// vite.config.ts
36
+
importsentryVitePluginfrom"@sentry/vite-plugin";
37
+
38
+
exportdefault {
39
+
plugins: [
40
+
sentryVitePlugin({
41
+
include: ".",
42
+
ignore: ["node_modules", "vite.config.ts"],
43
+
org: process.env.SENTRY_ORG,
44
+
project: process.env.SENTRY_PROJECT,
45
+
authToken: process.env.SENTRY_AUTH_TOKEN,
46
+
}),
47
+
],
48
+
};
49
+
```
50
+
51
+
As an alternative to passing options explicitly, you can also use a `.sentryclirc` file or environment variables as described in https://docs.sentry.io/product/cli/configuration/.
52
+
53
+
## Configuration
19
54
20
55
Every plugin takes an options argument with the following properties:
21
56
@@ -34,7 +69,7 @@ Every plugin takes an options argument with the following properties:
34
69
| cleanArtifacts |`boolean`| optional | Remove all existing artifacts in the Sentry release before uploading sourcemaps. Defaults to `false`. |
35
70
| errorHandler |`function(err: Error): void`| optional | Function that is called when an error occurs during rlease creation or sourcemaps upload. When this function is provided, thrown errors will not cause the process to abort. If you still want to abort the process you can throw an error in the function. |
As an alternative to passing options explicitly, you can also use a `.sentryclirc` file or environment variables as described in https://docs.sentry.io/product/cli/configuration/.
52
+
53
+
## Configuration
19
54
20
55
Every plugin takes an options argument with the following properties:
21
56
@@ -34,7 +69,7 @@ Every plugin takes an options argument with the following properties:
34
69
| cleanArtifacts |`boolean`| optional | Remove all existing artifacts in the Sentry release before uploading sourcemaps. Defaults to `false`. |
35
70
| errorHandler |`function(err: Error): void`| optional | Function that is called when an error occurs during rlease creation or sourcemaps upload. When this function is provided, thrown errors will not cause the process to abort. If you still want to abort the process you can throw an error in the function. |
0 commit comments