@@ -519,19 +519,19 @@ impl AppEndpoint {
519519 async fn output ( self : Vc < Self > ) -> Result < Vc < AppEndpointOutput > > {
520520 let this = self . await ?;
521521
522- let ( app_entry, process_client, process_ssr, api_route ) = match this. ty {
522+ let ( app_entry, process_client, process_ssr, has_client_side_assets ) = match this. ty {
523523 AppEndpointType :: Page { ty, loader_tree } => (
524524 self . app_page_entry ( loader_tree) ,
525525 true ,
526526 matches ! ( ty, AppPageEndpointType :: Html ) ,
527- false ,
527+ true ,
528528 ) ,
529529 // NOTE(alexkirsz) For routes, technically, a lot of the following code is not needed,
530530 // as we know we won't have any client references. However, for now, for simplicity's
531531 // sake, we just do the same thing as for pages.
532- AppEndpointType :: Route { path } => ( self . app_route_entry ( path) , false , false , true ) ,
532+ AppEndpointType :: Route { path } => ( self . app_route_entry ( path) , false , false , false ) ,
533533 AppEndpointType :: Metadata { metadata } => {
534- ( self . app_metadata_entry ( metadata) , false , false , true )
534+ ( self . app_metadata_entry ( metadata) , false , false , false )
535535 }
536536 } ;
537537
@@ -614,9 +614,10 @@ impl AppEndpoint {
614614 NextRuntime :: NodeJs => {
615615 Vc :: upcast ( this. app_project . project ( ) . server_chunking_context ( ) )
616616 }
617- NextRuntime :: Edge => {
618- this. app_project . project ( ) . edge_chunking_context ( api_route)
619- }
617+ NextRuntime :: Edge => this
618+ . app_project
619+ . project ( )
620+ . edge_chunking_context ( has_client_side_assets) ,
620621 } )
621622 } else {
622623 None
@@ -840,7 +841,10 @@ impl AppEndpoint {
840841 let endpoint_output = match runtime {
841842 NextRuntime :: Edge => {
842843 // create edge chunks
843- let chunking_context = this. app_project . project ( ) . edge_chunking_context ( api_route) ;
844+ let chunking_context = this
845+ . app_project
846+ . project ( )
847+ . edge_chunking_context ( has_client_side_assets) ;
844848 let mut evaluatable_assets = this
845849 . app_project
846850 . edge_rsc_runtime_entries ( )
0 commit comments