Unverified Commit 406523ea authored by Sebastian "Sebbie" Silbermann's avatar Sebastian "Sebbie" Silbermann Committed by GitHub

Fix false-positive `export const dynamic` in Cache Components detection (#95083)

parent 4638ab18
......@@ -285,14 +285,6 @@ async function createComponentTreeInternal(
}
if (typeof dynamic === 'string') {
if (cacheComponents) {
// TODO: Remove this since this should be caught during compilation.
// Left as a guard in case usage of Postpone was attempted
throw new Error(
`Route segment config "dynamic" is not compatible with \`nextConfig.cacheComponents\`. Please remove it.`
)
}
// the nested most config wins so we only force-static
// if it's configured above any parent that configured
// otherwise
......
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