Skip to content

Commit

Permalink
use path.sep instead of / (windows support)
Browse files Browse the repository at this point in the history
  • Loading branch information
s1gr1d committed Sep 19, 2024
1 parent 7a4b212 commit 4235d2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nuxt/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default defineNuxtModule<ModuleOptions>({
const serverConfigPath = serverDirResolver.resolve('sentry.server.config.mjs');

// For the default nitro node-preset build output this relative path would be: ./.output/server/sentry.server.config.mjs
const serverConfigRelativePath = `./${path.relative(nitro.options.rootDir, serverConfigPath)}`;
const serverConfigRelativePath = `.${path.sep}${path.relative(nitro.options.rootDir, serverConfigPath)}`;

consoleSandbox(() => {
// eslint-disable-next-line no-console
Expand Down

0 comments on commit 4235d2a

Please sign in to comment.