Skip to content

Commit

Permalink
fix(v1): docusaurus-start should work even if path contain 'pages' wo…
Browse files Browse the repository at this point in the history
…rd (#2020)
  • Loading branch information
endiliey committed Nov 20, 2019
1 parent e544dc9 commit de29543
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docusaurus-1.x/lib/server/server.js
Expand Up @@ -276,7 +276,7 @@ function execute(port, host) {
fs.existsSync((userFile = englishFile))
) {
// copy into docusaurus so require paths work
const userFileParts = userFile.split(`pages${sep}`);
const userFileParts = userFile.split(join(CWD, `pages${sep}`));
let tempFile = join(__dirname, '..', 'pages', userFileParts[1]);
tempFile = tempFile.replace(
path.basename(file),
Expand Down

0 comments on commit de29543

Please sign in to comment.