Skip to content

Commit

Permalink
fix(v1): docusaurus-start should work even if path contain 'pages' word
Browse files Browse the repository at this point in the history
  • Loading branch information
endiliey committed Nov 20, 2019
1 parent 6595f00 commit 978e892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docusaurus-1.x/lib/server/server.js
Original file line number Diff line number Diff line change
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 978e892

Please sign in to comment.