We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e70062 commit 377a562Copy full SHA for 377a562
src/mdx.ts
@@ -647,6 +647,10 @@ export async function getFileBySlug(slug: string): Promise<SlugFile> {
647
};
648
// Set the `outdir` to a public location for this bundle.
649
// 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
654
options.outdir = assetsCacheDir || outdir;
655
656
// Set write to true so that esbuild will output the files.
0 commit comments