@@ -746,23 +756,23 @@ export function trackAllowedDynamicAccess(
...
@@ -746,23 +756,23 @@ export function trackAllowedDynamicAccess(
// is an explicit signal from the user that they acknowledge the empty shell and want dynamic rendering.
// is an explicit signal from the user that they acknowledge the empty shell and want dynamic rendering.
dynamicValidation.hasAllowedDynamic=true
dynamicValidation.hasAllowedDynamic=true
dynamicValidation.hasSuspenseAboveBody=true
dynamicValidation.hasSuspenseAboveBody=true
return
returnnull
}elseif(hasSuspenseRegex.test(componentStack)){
}elseif(hasSuspenseRegex.test(componentStack)){
// this error had a Suspense boundary above it so we don't need to report it as a source
// this error had a Suspense boundary above it so we don't need to report it as a source
// of disallowed
// of disallowed
dynamicValidation.hasAllowedDynamic=true
dynamicValidation.hasAllowedDynamic=true
return
returnnull
}elseif(clientDynamic.syncDynamicErrorWithStack){
}elseif(clientDynamic.syncDynamicErrorWithStack){
// This task was the task that called the sync error.
// This task was the task that called the sync error.
dynamicValidation.dynamicErrors.push(
dynamicValidation.dynamicErrors.push(
clientDynamic.syncDynamicErrorWithStack
clientDynamic.syncDynamicErrorWithStack
)
)
return
returnDynamicErrorKind.SyncDynamic
}else{
}else{
constmessage=`Route "${workStore.route}": A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. See more info: https://nextjs.org/docs/messages/next-prerender-missing-suspense`
constmessage=`Route "${workStore.route}": A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. See more info: https://nextjs.org/docs/messages/next-prerender-missing-suspense`