Skip to content

Commit 377a562

Browse files
authored
Comment about switching build out directory
1 parent 1e70062 commit 377a562

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/mdx.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,6 +647,10 @@ export async function getFileBySlug(slug: string): Promise<SlugFile> {
647647
};
648648
// Set the `outdir` to a public location for this bundle.
649649
// this is where these images will be copied
650+
// the reason we use the cache folder when it's
651+
// enabled is because mdx-images is a dumping ground
652+
// for all images, so we cannot filter it out only
653+
// for this specific slug easily
650654
options.outdir = assetsCacheDir || outdir;
651655

652656
// Set write to true so that esbuild will output the files.

0 commit comments

Comments
 (0)