diff --git a/crates/next-api/src/app.rs b/crates/next-api/src/app.rs index 5cf4e741b377b..a8362eb28e3af 100644 --- a/crates/next-api/src/app.rs +++ b/crates/next-api/src/app.rs @@ -678,7 +678,7 @@ pub fn app_entry_point_to_route( AppEndpoint { ty: AppEndpointType::Page { ty: AppPageEndpointType::Html, - loader_tree: *loader_tree, + loader_tree, }, app_project, page: page.clone(), @@ -689,7 +689,7 @@ pub fn app_entry_point_to_route( AppEndpoint { ty: AppEndpointType::Page { ty: AppPageEndpointType::Rsc, - loader_tree: *loader_tree, + loader_tree, }, app_project, page, @@ -707,10 +707,7 @@ pub fn app_entry_point_to_route( original_name: page.to_string(), endpoint: Vc::upcast( AppEndpoint { - ty: AppEndpointType::Route { - path: *path, - root_layouts: *root_layouts, - }, + ty: AppEndpointType::Route { path, root_layouts }, app_project, page, } @@ -755,11 +752,11 @@ enum AppPageEndpointType { enum AppEndpointType { Page { ty: AppPageEndpointType, - loader_tree: Vc, + loader_tree: ResolvedVc, }, Route { - path: Vc, - root_layouts: Vc, + path: ResolvedVc, + root_layouts: ResolvedVc, }, Metadata { metadata: MetadataItem, @@ -843,9 +840,9 @@ impl AppEndpoint { let next_config = self.await?.app_project.project().next_config(); let app_entry = match this.ty { - AppEndpointType::Page { loader_tree, .. } => self.app_page_entry(loader_tree), + AppEndpointType::Page { loader_tree, .. } => self.app_page_entry(*loader_tree), AppEndpointType::Route { path, root_layouts } => { - self.app_route_entry(path, root_layouts, next_config) + self.app_route_entry(*path, *root_layouts, next_config) } AppEndpointType::Metadata { metadata } => { self.app_metadata_entry(metadata, next_config) diff --git a/crates/next-api/src/instrumentation.rs b/crates/next-api/src/instrumentation.rs index 93f518c31d299..2fe8c83411eca 100644 --- a/crates/next-api/src/instrumentation.rs +++ b/crates/next-api/src/instrumentation.rs @@ -41,7 +41,7 @@ pub struct InstrumentationEndpoint { is_edge: bool, app_dir: Option>, - ecmascript_client_reference_transition_name: Option>, + ecmascript_client_reference_transition_name: Option>, } #[turbo_tasks::value_impl] @@ -53,7 +53,7 @@ impl InstrumentationEndpoint { source: ResolvedVc>, is_edge: bool, app_dir: Option>, - ecmascript_client_reference_transition_name: Option>, + ecmascript_client_reference_transition_name: Option>, ) -> Vc { Self { project, @@ -113,7 +113,8 @@ impl InstrumentationEndpoint { Value::new(ServerContextType::Instrumentation { app_dir: this.app_dir, ecmascript_client_reference_transition_name: this - .ecmascript_client_reference_transition_name, + .ecmascript_client_reference_transition_name + .map(|v| *v), }), this.project.next_mode(), ) @@ -165,7 +166,8 @@ impl InstrumentationEndpoint { Value::new(ServerContextType::Instrumentation { app_dir: this.app_dir, ecmascript_client_reference_transition_name: this - .ecmascript_client_reference_transition_name, + .ecmascript_client_reference_transition_name + .map(|v| *v), }), this.project.next_mode(), )