@@ -5,93 +5,93 @@ export type SentryNuxtOptions = Omit<Parameters<typeof init>[0] & object, 'app'>
55
66type SourceMapsOptions = {
77 /**
8- * Options for the Sentry Vite plugin to customize the source maps upload process.
8+ * If this flag is `true`, and an auth token is detected, the Sentry SDK will
9+ * automatically generate and upload source maps to Sentry during a production build.
910 *
10- * These options are always read from the `sentry` module options in the `nuxt.config.(js|ts).
11- * Do not define them in the `sentry.client.config.(js|ts)` or `sentry.server.config.(js|ts)` files.
11+ * @default true
1212 */
13- sourceMapsUploadOptions ?: {
14- /**
15- * If this flag is `true`, and an auth token is detected, the Sentry integration will
16- * automatically generate and upload source maps to Sentry during a production build.
17- *
18- * @default true
19- */
20- enabled ?: boolean ;
13+ enabled ?: boolean ;
2114
22- /**
23- * The auth token to use when uploading source maps to Sentry.
24- *
25- * Instead of specifying this option, you can also set the `SENTRY_AUTH_TOKEN` environment variable.
26- *
27- * To create an auth token, follow this guide:
28- * @see https://docs.sentry.io/product/accounts/auth-tokens/#organization-auth-tokens
29- */
30- authToken ?: string ;
15+ /**
16+ * The auth token to use when uploading source maps to Sentry.
17+ *
18+ * Instead of specifying this option, you can also set the `SENTRY_AUTH_TOKEN` environment variable.
19+ *
20+ * To create an auth token, follow this guide:
21+ * @see https://docs.sentry.io/product/accounts/auth-tokens/#organization-auth-tokens
22+ */
23+ authToken ?: string ;
3124
32- /**
33- * The organization slug of your Sentry organization.
34- * Instead of specifying this option, you can also set the `SENTRY_ORG` environment variable.
35- */
36- org ?: string ;
25+ /**
26+ * The organization slug of your Sentry organization.
27+ * Instead of specifying this option, you can also set the `SENTRY_ORG` environment variable.
28+ */
29+ org ?: string ;
30+
31+ /**
32+ * The project slug of your Sentry project.
33+ * Instead of specifying this option, you can also set the `SENTRY_PROJECT` environment variable.
34+ */
35+ project ?: string ;
3736
37+ /**
38+ * If this flag is `true`, the Sentry plugin will collect some telemetry data and send it to Sentry.
39+ * It will not collect any sensitive or user-specific data.
40+ *
41+ * @default true
42+ */
43+ telemetry ?: boolean ;
44+
45+ /**
46+ * Options related to sourcemaps
47+ */
48+ sourcemaps ?: {
3849 /**
39- * The project slug of your Sentry project.
40- * Instead of specifying this option, you can also set the `SENTRY_PROJECT` environment variable.
50+ * A glob or an array of globs that specify the build artifacts and source maps that will be uploaded to Sentry.
51+ *
52+ * If this option is not specified, sensible defaults based on your adapter and nuxt.config.js
53+ * setup will be used. Use this option to override these defaults, for instance if you have a
54+ * customized build setup that diverges from Nuxt's defaults.
55+ *
56+ * The globbing patterns must follow the implementation of the `glob` package.
57+ * @see https://www.npmjs.com/package/glob#glob-primer
4158 */
42- project ?: string ;
59+ assets ?: string | Array < string > ;
4360
4461 /**
45- * If this flag is `true`, the Sentry plugin will collect some telemetry data and send it to Sentry.
46- * It will not collect any sensitive or user-specific data.
62+ * A glob or an array of globs that specifies which build artifacts should not be uploaded to Sentry.
4763 *
48- * @default true
64+ * @default [] - By default no files are ignored. Thus, all files matching the `assets` glob
65+ * or the default value for `assets` are uploaded.
66+ *
67+ * The globbing patterns follow the implementation of the glob package. (https://www.npmjs.com/package/glob)
4968 */
50- telemetry ?: boolean ;
69+ ignore ?: string | Array < string > ;
5170
5271 /**
53- * Options related to sourcemaps
72+ * A glob or an array of globs that specifies the build artifacts that should be deleted after the artifact
73+ * upload to Sentry has been completed.
74+ *
75+ * @default [] - By default no files are deleted.
76+ *
77+ * The globbing patterns follow the implementation of the glob package. (https://www.npmjs.com/package/glob)
5478 */
55- sourcemaps ?: {
56- /**
57- * A glob or an array of globs that specify the build artifacts and source maps that will be uploaded to Sentry.
58- *
59- * If this option is not specified, sensible defaults based on your adapter and nuxt.config.js
60- * setup will be used. Use this option to override these defaults, for instance if you have a
61- * customized build setup that diverges from Nuxt's defaults.
62- *
63- * The globbing patterns must follow the implementation of the `glob` package.
64- * @see https://www.npmjs.com/package/glob#glob-primer
65- */
66- assets ?: string | Array < string > ;
67-
68- /**
69- * A glob or an array of globs that specifies which build artifacts should not be uploaded to Sentry.
70- *
71- * @default [] - By default no files are ignored. Thus, all files matching the `assets` glob
72- * or the default value for `assets` are uploaded.
73- *
74- * The globbing patterns follow the implementation of the glob package. (https://www.npmjs.com/package/glob)
75- */
76- ignore ?: string | Array < string > ;
77-
78- /**
79- * A glob or an array of globs that specifies the build artifacts that should be deleted after the artifact
80- * upload to Sentry has been completed.
81- *
82- * @default [] - By default no files are deleted.
83- *
84- * The globbing patterns follow the implementation of the glob package. (https://www.npmjs.com/package/glob)
85- */
86- filesToDeleteAfterUpload ?: string | Array < string > ;
87- } ;
79+ filesToDeleteAfterUpload ?: string | Array < string > ;
8880 } ;
8981} ;
9082
9183/**
9284 * Build options for the Sentry module. These options are used during build-time by the Sentry SDK.
9385 */
94- export type SentryNuxtModuleOptions = SourceMapsOptions & {
86+ export type SentryNuxtModuleOptions = {
87+ /**
88+ * Options for the Sentry Vite plugin to customize the source maps upload process.
89+ *
90+ * These options are always read from the `sentry` module options in the `nuxt.config.(js|ts).
91+ * Do not define them in the `sentry.client.config.(js|ts)` or `sentry.server.config.(js|ts)` files.
92+ */
93+ sourceMapsUploadOptions ?: SourceMapsOptions ;
94+
9595 /**
9696 * Enable debug functionality of the SDK during build-time.
9797 * Enabling this will give you, for example, logs about source maps.
0 commit comments