mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-04 12:47:14 +02:00
fix missing ensureDir call
This commit is contained in:
parent
0c330df5cc
commit
9a73680ea5
1 changed files with 1 additions and 0 deletions
|
@ -52,6 +52,7 @@ export default async function writeRedirectFiles(
|
|||
) {
|
||||
async function writeFile(file: FileMetadata) {
|
||||
try {
|
||||
await fs.ensureDir(path.dirname(file.fileAbsolutePath));
|
||||
await fs.writeFile(file.fileAbsolutePath, file.fileContent);
|
||||
} catch (err) {
|
||||
throw new Error(`Redirect file creation error: ${err}`);
|
||||
|
|
Loading…
Add table
Reference in a new issue