mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 15:47:23 +02:00
refactor: fix a few places of path handling (#7023)
This commit is contained in:
parent
e6838dd7a6
commit
4957ec947b
7 changed files with 9 additions and 15 deletions
|
@ -37,7 +37,7 @@ export async function getDataFilePath({
|
|||
filePath,
|
||||
);
|
||||
if (contentPath) {
|
||||
return path.join(contentPath, filePath);
|
||||
return path.resolve(contentPath, filePath);
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue