@@ -1150,10 +1150,8 @@ impl AppEndpoint {
1150
1150
) ,
1151
1151
} ;
1152
1152
1153
- let node_root = project. node_root ( ) ;
1154
-
1155
- let client_relative_path = project. client_relative_path ( ) ;
1156
-
1153
+ let node_root = project. node_root ( ) . to_resolved ( ) . await ?;
1154
+ let client_relative_path = project. client_relative_path ( ) . to_resolved ( ) . await ?;
1157
1155
let server_path = node_root. join ( "server" . into ( ) ) ;
1158
1156
1159
1157
let mut server_assets = fxindexset ! [ ] ;
@@ -1174,16 +1172,20 @@ impl AppEndpoint {
1174
1172
)
1175
1173
. await ?;
1176
1174
1177
- let client_chunking_context = project. client_chunking_context ( ) ;
1175
+ let client_chunking_context = project. client_chunking_context ( ) . to_resolved ( ) . await ? ;
1178
1176
1179
1177
let ssr_chunking_context = if process_ssr {
1180
- Some ( match runtime {
1181
- NextRuntime :: NodeJs => Vc :: upcast ( project. server_chunking_context ( true ) ) ,
1182
- NextRuntime :: Edge => this
1183
- . app_project
1184
- . project ( )
1185
- . edge_chunking_context ( process_client_assets) ,
1186
- } )
1178
+ Some (
1179
+ match runtime {
1180
+ NextRuntime :: NodeJs => Vc :: upcast ( project. server_chunking_context ( true ) ) ,
1181
+ NextRuntime :: Edge => this
1182
+ . app_project
1183
+ . project ( )
1184
+ . edge_chunking_context ( process_client_assets) ,
1185
+ }
1186
+ . to_resolved ( )
1187
+ . await ?,
1188
+ )
1187
1189
} else {
1188
1190
None
1189
1191
} ;
@@ -1193,7 +1195,7 @@ impl AppEndpoint {
1193
1195
. with_modifier ( client_shared_chunks_modifier ( ) ) ,
1194
1196
this. app_project . client_runtime_entries ( ) ,
1195
1197
* module_graphs. full ,
1196
- client_chunking_context,
1198
+ * client_chunking_context,
1197
1199
)
1198
1200
. await ?;
1199
1201
@@ -1216,18 +1218,23 @@ impl AppEndpoint {
1216
1218
. get_next_dynamic_imports_for_endpoint ( * rsc_entry)
1217
1219
. await ?;
1218
1220
1219
- let client_references = reduced_graphs. get_client_references_for_endpoint (
1220
- * rsc_entry,
1221
- matches ! ( this. ty, AppEndpointType :: Page { .. } ) ,
1222
- ) ;
1221
+ let client_references = reduced_graphs
1222
+ . get_client_references_for_endpoint (
1223
+ * rsc_entry,
1224
+ matches ! ( this. ty, AppEndpointType :: Page { .. } ) ,
1225
+ )
1226
+ . to_resolved ( )
1227
+ . await ?;
1223
1228
1224
1229
let client_references_chunks = get_app_client_references_chunks (
1225
- client_references,
1230
+ * client_references,
1226
1231
* module_graphs. full ,
1227
- client_chunking_context,
1232
+ * client_chunking_context,
1228
1233
Value :: new ( client_shared_availability_info) ,
1229
- ssr_chunking_context,
1230
- ) ;
1234
+ ssr_chunking_context. map ( |ctx| * ctx) ,
1235
+ )
1236
+ . to_resolved ( )
1237
+ . await ?;
1231
1238
let client_references_chunks_ref = client_references_chunks. await ?;
1232
1239
1233
1240
let mut entry_client_chunks = FxIndexSet :: default ( ) ;
@@ -1272,7 +1279,7 @@ impl AppEndpoint {
1272
1279
node_root. join (
1273
1280
format ! ( "server/app{manifest_path_prefix}/app-build-manifest.json" , ) . into ( ) ,
1274
1281
) ,
1275
- client_relative_path,
1282
+ * client_relative_path,
1276
1283
)
1277
1284
. await ?
1278
1285
. to_resolved ( )
@@ -1328,7 +1335,7 @@ impl AppEndpoint {
1328
1335
node_root. join (
1329
1336
format ! ( "server/app{manifest_path_prefix}/build-manifest.json" , ) . into ( ) ,
1330
1337
) ,
1331
- client_relative_path,
1338
+ * client_relative_path,
1332
1339
)
1333
1340
. await ?
1334
1341
. to_resolved ( )
@@ -1363,7 +1370,7 @@ impl AppEndpoint {
1363
1370
let server_action_manifest = create_server_actions_manifest (
1364
1371
actions,
1365
1372
project. project_path ( ) ,
1366
- node_root,
1373
+ * node_root,
1367
1374
app_entry. original_name . clone ( ) ,
1368
1375
runtime,
1369
1376
match runtime {
@@ -1384,7 +1391,7 @@ impl AppEndpoint {
1384
1391
1385
1392
let app_entry_chunks = self
1386
1393
. app_entry_chunks (
1387
- client_references,
1394
+ * client_references,
1388
1395
* server_action_manifest_loader,
1389
1396
server_path,
1390
1397
process_client_assets,
@@ -1410,13 +1417,13 @@ impl AppEndpoint {
1410
1417
entry_name : app_entry. original_name . clone ( ) ,
1411
1418
client_references,
1412
1419
client_references_chunks,
1413
- rsc_app_entry_chunks : * app_entry_chunks,
1420
+ rsc_app_entry_chunks : app_entry_chunks,
1414
1421
client_chunking_context,
1415
1422
ssr_chunking_context,
1416
- async_module_info : module_graphs. full . async_module_info ( ) ,
1417
- next_config : project. next_config ( ) ,
1423
+ async_module_info : module_graphs. full . async_module_info ( ) . to_resolved ( ) . await ? ,
1424
+ next_config : project. next_config ( ) . to_resolved ( ) . await ? ,
1418
1425
runtime,
1419
- mode : project. next_mode ( ) ,
1426
+ mode : * project. next_mode ( ) . await ? ,
1420
1427
} )
1421
1428
. to_resolved ( )
1422
1429
. await ?;
@@ -1428,7 +1435,7 @@ impl AppEndpoint {
1428
1435
1429
1436
let next_font_manifest_output = create_font_manifest (
1430
1437
project. client_root ( ) ,
1431
- node_root,
1438
+ * node_root,
1432
1439
this. app_project . app_dir ( ) ,
1433
1440
& app_entry. original_name ,
1434
1441
& app_entry. original_name ,
@@ -1476,7 +1483,7 @@ impl AppEndpoint {
1476
1483
if emit_manifests == EmitManifests :: Full {
1477
1484
let dynamic_import_entries = collect_next_dynamic_chunks (
1478
1485
* module_graphs. full ,
1479
- Vc :: upcast ( client_chunking_context) ,
1486
+ * ResolvedVc :: upcast ( client_chunking_context) ,
1480
1487
next_dynamic_imports,
1481
1488
NextDynamicChunkAvailability :: ClientReferences (
1482
1489
& * ( client_references_chunks. await ?) ,
@@ -1486,7 +1493,7 @@ impl AppEndpoint {
1486
1493
1487
1494
let loadable_manifest_output = create_react_loadable_manifest (
1488
1495
* dynamic_import_entries,
1489
- client_relative_path,
1496
+ * client_relative_path,
1490
1497
node_root. join (
1491
1498
format ! (
1492
1499
"server/app{}/react-loadable-manifest" ,
@@ -1556,7 +1563,7 @@ impl AppEndpoint {
1556
1563
if emit_manifests != EmitManifests :: None {
1557
1564
// create app paths manifest
1558
1565
let app_paths_manifest_output =
1559
- create_app_paths_manifest ( node_root, & app_entry. original_name , entry_file)
1566
+ create_app_paths_manifest ( * node_root, & app_entry. original_name , entry_file)
1560
1567
. await ?;
1561
1568
server_assets. insert ( app_paths_manifest_output) ;
1562
1569
}
@@ -1576,7 +1583,7 @@ impl AppEndpoint {
1576
1583
if emit_manifests != EmitManifests :: None {
1577
1584
// create app paths manifest
1578
1585
let app_paths_manifest_output = create_app_paths_manifest (
1579
- node_root,
1586
+ * node_root,
1580
1587
& app_entry. original_name ,
1581
1588
server_path
1582
1589
. await ?
@@ -1594,7 +1601,7 @@ impl AppEndpoint {
1594
1601
// create react-loadable-manifest for next/dynamic
1595
1602
let dynamic_import_entries = collect_next_dynamic_chunks (
1596
1603
* module_graphs. full ,
1597
- Vc :: upcast ( client_chunking_context) ,
1604
+ * ResolvedVc :: upcast ( client_chunking_context) ,
1598
1605
next_dynamic_imports,
1599
1606
NextDynamicChunkAvailability :: ClientReferences (
1600
1607
& * ( client_references_chunks. await ?) ,
@@ -1604,7 +1611,7 @@ impl AppEndpoint {
1604
1611
1605
1612
let loadable_manifest_output = create_react_loadable_manifest (
1606
1613
* dynamic_import_entries,
1607
- client_relative_path,
1614
+ * client_relative_path,
1608
1615
node_root. join (
1609
1616
format ! (
1610
1617
"server/app{}/react-loadable-manifest" ,
0 commit comments