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 dbbfa8e commit fabbb6d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions crates/napi/src/next_api/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -696,15 +696,15 @@ pub fn project_entrypoints_subscribe(
.transpose()?,
pages_document_endpoint: External::new(ExternalEndpoint(VcArc::new(
turbo_tasks.clone(),
entrypoints.pages_document_endpoint,
*entrypoints.pages_document_endpoint,
))),
pages_app_endpoint: External::new(ExternalEndpoint(VcArc::new(
turbo_tasks.clone(),
entrypoints.pages_app_endpoint,
*entrypoints.pages_app_endpoint,
))),
pages_error_endpoint: External::new(ExternalEndpoint(VcArc::new(
turbo_tasks.clone(),
entrypoints.pages_error_endpoint,
*entrypoints.pages_error_endpoint,
))),
},
issues: issues
Expand Down
6 changes: 3 additions & 3 deletions crates/next-api/src/global_module_id_strategy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ impl GlobalModuleIdStrategyBuilder {

let entrypoints = project.entrypoints().await?;

preprocessed_module_ids.push(preprocess_module_ids(entrypoints.pages_error_endpoint));
preprocessed_module_ids.push(preprocess_module_ids(entrypoints.pages_app_endpoint));
preprocessed_module_ids.push(preprocess_module_ids(entrypoints.pages_document_endpoint));
preprocessed_module_ids.push(preprocess_module_ids(*entrypoints.pages_error_endpoint));
preprocessed_module_ids.push(preprocess_module_ids(*entrypoints.pages_app_endpoint));
preprocessed_module_ids.push(preprocess_module_ids(*entrypoints.pages_document_endpoint));

if let Some(middleware) = &entrypoints.middleware {
preprocessed_module_ids.push(preprocess_module_ids(middleware.endpoint));
Expand Down
7 changes: 4 additions & 3 deletions crates/next-api/src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -533,9 +533,10 @@ impl Project {
pub async fn app_project(self: Vc<Self>) -> Result<Vc<OptionAppProject>> {
let app_dir = find_app_dir(self.project_path()).await?;

Ok(Vc::cell(app_dir.map(
|app_dir: ResolvedVc<FileSystemPath>| AppProject::new(self, *app_dir),
)))
Ok(match *app_dir {
Some(app_dir) => Vc::cell(Some(AppProject::new(self, *app_dir).to_resolved().await?)),
None => Vc::cell(None),
})
}

#[turbo_tasks::function]
Expand Down

0 comments on commit fabbb6d

Please sign in to comment.