From ba669b90da41a7db148e6b2f5619b0058289fbba Mon Sep 17 00:00:00 2001 From: haxibami Date: Fri, 14 Jun 2024 22:42:52 +0900 Subject: [PATCH] Update src/lib/CopyAssetIntegration.ts Co-authored-by: cm-ayf --- src/lib/CopyAssetIntegration.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib/CopyAssetIntegration.ts b/src/lib/CopyAssetIntegration.ts index 67b3d1a6e7..f8ac902cf8 100644 --- a/src/lib/CopyAssetIntegration.ts +++ b/src/lib/CopyAssetIntegration.ts @@ -61,10 +61,8 @@ export default function CopyAssetIntegration(): AstroIntegration { }), ); - const assetPaths = [...assetPathsCache]; - await Promise.all( - assetPaths.map(async (assetPath) => { + Array.from(assetPathsCache, async (assetPath) => { const srcPath = resolve(join("src/pages", assetPath)); const destPath = join(fileURLToPath(dir), assetPath); const srcPattern = [`${srcPath}.md`];