// TODO: We should not rely on the `page` in order to determine route type. `definition.kind` has this information for each bundle. The problem with ClientReferenceManifest is that it's used in `setReferenceManifestsSingleton` which has to run before the route itself is required.
consthasClientManifest=
!isStaticMetadataRoute(page)||
// Temporary hack to exclude loading the clientReferenceManifest for Route Handlers.
page.endsWith('/route')
// Load the manifest files first
//
...
...
@@ -223,7 +223,7 @@ async function loadComponentsImpl<N = any>({