diff --git a/packages/mdx/src/config/cached.ts b/packages/mdx/src/config/cached.ts index 352bab796..5fb25caf2 100644 --- a/packages/mdx/src/config/cached.ts +++ b/packages/mdx/src/config/cached.ts @@ -27,7 +27,7 @@ export async function loadConfigCached( * Generate hash based on the content of config */ export async function getConfigHash(configPath: string): Promise { - const hash = createHash('sha256'); + const hash = createHash('md5'); const rs = fs.createReadStream(configPath); for await (const chunk of rs) { diff --git a/packages/mdx/src/loader-mdx.ts b/packages/mdx/src/loader-mdx.ts index 05662f378..70fca2cff 100644 --- a/packages/mdx/src/loader-mdx.ts +++ b/packages/mdx/src/loader-mdx.ts @@ -60,7 +60,7 @@ export default async function loader( const { _ctx } = this.getOptions(); const matter = grayMatter(source); - // notice that `resourceQuery` can be missing (e.g. on Turbopack) + // notice that `resourceQuery` can be missing (e.g. `page.mdx`) const { hash: configHash = await getConfigHash(_ctx.configPath), collection: collectionId,