Unverified Commit 8430d371 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Fix middleware case with adapters (#90624)

Follow-up to https://github.com/vercel/next.js/pull/90611 this fixes the
middleware case to ensure it doesn't create a `_next/data` output.

x-ref:
https://github.com/vercel/next.js/actions/runs/22465910596/job/65075127711#step:34:302
parent 94db8c6e
......@@ -771,7 +771,10 @@ export async function handleBuildComplete({
pathname: rscPathname,
id: page.name + '.rsc',
})
} else if (serverPropsPages.has(pathname)) {
} else if (
type !== AdapterOutputType.MIDDLEWARE &&
serverPropsPages.has(pathname)
) {
const nextDataPath = path.posix.join(
'/_next/data/',
buildId,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment