Skip to content

Commit

Permalink
Fix more
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Nov 27, 2024
1 parent 7aab007 commit a18bf35
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions crates/next-api/src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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,
Expand All @@ -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,
}
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a18bf35

Please sign in to comment.