Skip to content

Commit 0331ef9

Browse files
committed
fix: should use the found config file
1 parent c0b778d commit 0331ef9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/nuxt/src/module.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ export default defineNuxtModule<ModuleOptions>({
8181

8282
// Add type references for useRuntimeConfig in root files for nuxt v4
8383
// Should be relative to `root/.nuxt`
84-
options.tsConfig.include.push('../sentry.client.config.ts');
84+
const relativePath = path.relative(nuxt.options.buildDir, clientConfigFile);
85+
options.tsConfig.include.push(`../${relativePath}`);
8586
});
8687
}
8788

0 commit comments

Comments
 (0)