@@ -6,8 +6,8 @@ use next_core::{
6
6
hmr_entry:: HmrEntryModule ,
7
7
mode:: NextMode ,
8
8
next_client:: {
9
- ClientContextType , RuntimeEntries , get_client_module_options_context ,
10
- get_client_resolve_options_context , get_client_runtime_entries,
9
+ ClientContextType , get_client_module_options_context , get_client_resolve_options_context ,
10
+ get_client_runtime_entries,
11
11
} ,
12
12
next_dynamic:: NextDynamicTransition ,
13
13
next_edge:: route_regex:: get_named_middleware_regex,
@@ -18,7 +18,6 @@ use next_core::{
18
18
next_pages:: create_page_ssr_entry_module,
19
19
next_server:: {
20
20
ServerContextType , get_server_module_options_context, get_server_resolve_options_context,
21
- get_server_runtime_entries,
22
21
} ,
23
22
pages_structure:: {
24
23
PagesDirectoryStructure , PagesStructure , PagesStructureItem , find_pages_structure,
@@ -599,50 +598,6 @@ impl PagesProject {
599
598
Ok ( client_runtime_entries. resolve_entries ( Vc :: upcast ( self . client_module_context ( ) ) ) )
600
599
}
601
600
602
- #[ turbo_tasks:: function]
603
- async fn runtime_entries ( self : Vc < Self > ) -> Result < Vc < RuntimeEntries > > {
604
- Ok ( get_server_runtime_entries (
605
- ServerContextType :: Pages {
606
- pages_dir : self . pages_dir ( ) . owned ( ) . await ?,
607
- } ,
608
- self . project ( ) . next_mode ( ) ,
609
- ) )
610
- }
611
-
612
- #[ turbo_tasks:: function]
613
- async fn data_runtime_entries ( self : Vc < Self > ) -> Result < Vc < RuntimeEntries > > {
614
- Ok ( get_server_runtime_entries (
615
- ServerContextType :: PagesData {
616
- pages_dir : self . pages_dir ( ) . owned ( ) . await ?,
617
- } ,
618
- self . project ( ) . next_mode ( ) ,
619
- ) )
620
- }
621
-
622
- #[ turbo_tasks:: function]
623
- fn ssr_runtime_entries ( self : Vc < Self > ) -> Vc < EvaluatableAssets > {
624
- let ssr_runtime_entries = self . runtime_entries ( ) ;
625
- ssr_runtime_entries. resolve_entries ( Vc :: upcast ( self . ssr_module_context ( ) ) )
626
- }
627
-
628
- #[ turbo_tasks:: function]
629
- fn ssr_data_runtime_entries ( self : Vc < Self > ) -> Vc < EvaluatableAssets > {
630
- let ssr_data_runtime_entries = self . data_runtime_entries ( ) ;
631
- ssr_data_runtime_entries. resolve_entries ( Vc :: upcast ( self . ssr_module_context ( ) ) )
632
- }
633
-
634
- #[ turbo_tasks:: function]
635
- fn edge_ssr_runtime_entries ( self : Vc < Self > ) -> Vc < EvaluatableAssets > {
636
- let ssr_runtime_entries = self . runtime_entries ( ) ;
637
- ssr_runtime_entries. resolve_entries ( Vc :: upcast ( self . edge_ssr_module_context ( ) ) )
638
- }
639
-
640
- #[ turbo_tasks:: function]
641
- fn edge_ssr_data_runtime_entries ( self : Vc < Self > ) -> Vc < EvaluatableAssets > {
642
- let ssr_data_runtime_entries = self . data_runtime_entries ( ) ;
643
- ssr_data_runtime_entries. resolve_entries ( Vc :: upcast ( self . edge_ssr_module_context ( ) ) )
644
- }
645
-
646
601
#[ turbo_tasks:: function]
647
602
pub async fn client_main_module ( self : Vc < Self > ) -> Result < Vc < Box < dyn Module > > > {
648
603
let client_module_context = Vc :: upcast ( self . client_module_context ( ) ) ;
@@ -1008,8 +963,6 @@ impl PageEndpoint {
1008
963
node_path : FileSystemPath ,
1009
964
node_chunking_context : Vc < NodeJsChunkingContext > ,
1010
965
edge_chunking_context : Vc < Box < dyn ChunkingContext > > ,
1011
- runtime_entries : Vc < EvaluatableAssets > ,
1012
- edge_runtime_entries : Vc < EvaluatableAssets > ,
1013
966
) -> Result < Vc < SsrChunk > > {
1014
967
async move {
1015
968
let this = self . await ?;
@@ -1126,15 +1079,9 @@ impl PageEndpoint {
1126
1079
. context ( "could not process page loader entry module" ) ?;
1127
1080
let is_edge = matches ! ( runtime, NextRuntime :: Edge ) ;
1128
1081
if is_edge {
1129
- let edge_runtime_entries = edge_runtime_entries. await ?;
1130
- let evaluatable_assets = edge_runtime_entries
1131
- . iter ( )
1132
- . map ( |m| ResolvedVc :: upcast ( * m) )
1133
- . chain ( std:: iter:: once ( ResolvedVc :: upcast ( ssr_module_evaluatable) ) ) ;
1134
-
1135
1082
let edge_files = edge_chunking_context. evaluated_chunk_group_assets (
1136
1083
ssr_module. ident ( ) ,
1137
- ChunkGroup :: Entry ( evaluatable_assets . collect ( ) ) ,
1084
+ ChunkGroup :: Entry ( vec ! [ ResolvedVc :: upcast ( ssr_module_evaluatable ) ] ) ,
1138
1085
ssr_module_graph,
1139
1086
current_availability_info,
1140
1087
) ;
@@ -1155,7 +1102,7 @@ impl PageEndpoint {
1155
1102
let ssr_entry_chunk = node_chunking_context
1156
1103
. entry_chunk_group_asset (
1157
1104
ssr_entry_chunk_path,
1158
- runtime_entries . with_entry ( * ssr_module_evaluatable) ,
1105
+ EvaluatableAssets :: empty ( ) . with_entry ( * ssr_module_evaluatable) ,
1159
1106
ssr_module_graph,
1160
1107
current_chunks,
1161
1108
current_availability_info,
@@ -1224,8 +1171,6 @@ impl PageEndpoint {
1224
1171
. join ( "server" ) ?,
1225
1172
project. server_chunking_context ( true ) ,
1226
1173
project. edge_chunking_context ( true ) ,
1227
- this. pages_project . ssr_runtime_entries ( ) ,
1228
- this. pages_project . edge_ssr_runtime_entries ( ) ,
1229
1174
) )
1230
1175
}
1231
1176
@@ -1242,8 +1187,6 @@ impl PageEndpoint {
1242
1187
. join ( "server/data" ) ?,
1243
1188
this. pages_project . project ( ) . server_chunking_context ( true ) ,
1244
1189
this. pages_project . project ( ) . edge_chunking_context ( true ) ,
1245
- this. pages_project . ssr_data_runtime_entries ( ) ,
1246
- this. pages_project . edge_ssr_data_runtime_entries ( ) ,
1247
1190
) )
1248
1191
}
1249
1192
@@ -1260,8 +1203,6 @@ impl PageEndpoint {
1260
1203
. join ( "server" ) ?,
1261
1204
this. pages_project . project ( ) . server_chunking_context ( false ) ,
1262
1205
this. pages_project . project ( ) . edge_chunking_context ( false ) ,
1263
- this. pages_project . ssr_runtime_entries ( ) ,
1264
- this. pages_project . edge_ssr_runtime_entries ( ) ,
1265
1206
) )
1266
1207
}
1267
1208
0 commit comments