Skip to content

Commit

Permalink
chore: fix normalize paths on Windows in dev server (#1655)
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin authored Sep 4, 2024
1 parent 685b558 commit 4a44b06
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ function normalizedDirPath(path?: string) {
return path
}

const windowsPath = path.replace(/\\/g, '/')
return windowsPath.startsWith('file:///') ? windowsPath : `file:///${windowsPath}`
return path.replace(/\\/g, '/')
}

const docsSourceBase = normalizedDirPath(process.env.NUXT_DOCS_PATH)
Expand Down

0 comments on commit 4a44b06

Please sign in to comment.