Skip to content

Commit

Permalink
Update src/lib/CopyAssetIntegration.ts
Browse files Browse the repository at this point in the history
Co-authored-by: cm-ayf <[email protected]>
  • Loading branch information
haxibami and cm-ayf authored Jun 14, 2024
1 parent e2c3ef1 commit ba669b9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib/CopyAssetIntegration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`];
Expand Down

0 comments on commit ba669b9

Please sign in to comment.