File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,13 @@ type SourceMapsOptions = {
95
95
* Build options for the Sentry module. These options are used during build-time by the Sentry SDK.
96
96
*/
97
97
export type SentryNuxtModuleOptions = {
98
+ /**
99
+ * Enable the Sentry Nuxt Module.
100
+ *
101
+ * @default true
102
+ */
103
+ enabled ?: boolean ;
104
+
98
105
/**
99
106
* Options for the Sentry Vite plugin to customize the source maps upload process.
100
107
*
Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ export default defineNuxtModule<ModuleOptions>({
18
18
} ,
19
19
defaults : { } ,
20
20
setup ( moduleOptionsParam , nuxt ) {
21
+ if ( 'enabled' in moduleOptionsParam && moduleOptionsParam . enabled === false ) {
22
+ return ;
23
+ }
24
+
21
25
const moduleOptions = {
22
26
...moduleOptionsParam ,
23
27
autoInjectServerSentry : moduleOptionsParam . autoInjectServerSentry ,
You can’t perform that action at this time.
0 commit comments