We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5aa7a53 commit 93293b3Copy full SHA for 93293b3
packages/nuxt/src/module.ts
@@ -72,6 +72,16 @@ export default defineNuxtModule<ModuleOptions>({
72
mode: 'client',
73
order: 1,
74
});
75
+
76
+ nuxt.hook('prepare:types', options => {
77
+ // Add the sentry config file to the include array
78
+ if (!options.tsConfig.include) {
79
+ options.tsConfig.include = [];
80
+ }
81
82
+ // Add type references for useRuntimeConfig in root files for nuxt v4
83
+ options.tsConfig.include.push('../sentry.client.config.ts');
84
+ });
85
}
86
87
const serverConfigFile = findDefaultSdkInitFile('server', nuxt);
0 commit comments