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 39fde72 commit f4003b3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
14 changes: 7 additions & 7 deletions crates/next-api/src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,17 +477,17 @@ pub struct ProjectDefineEnv {
impl ProjectDefineEnv {
#[turbo_tasks::function]
pub fn client(&self) -> Vc<EnvMap> {
self.client
*self.client
}

#[turbo_tasks::function]
pub fn edge(&self) -> Vc<EnvMap> {
self.edge
*self.edge
}

#[turbo_tasks::function]
pub fn nodejs(&self) -> Vc<EnvMap> {
self.nodejs
*self.nodejs
}
}

Expand Down Expand Up @@ -610,22 +610,22 @@ impl Project {

#[turbo_tasks::function]
pub(super) fn env(&self) -> Vc<Box<dyn ProcessEnv>> {
self.env
*self.env
}

#[turbo_tasks::function]
pub(super) fn next_config(&self) -> Vc<NextConfig> {
self.next_config
*self.next_config
}

#[turbo_tasks::function]
pub(super) fn next_mode(&self) -> Vc<NextMode> {
self.mode
*self.mode
}

#[turbo_tasks::function]
pub(super) fn js_config(&self) -> Vc<JsConfig> {
self.js_config
*self.js_config
}

#[turbo_tasks::function]
Expand Down
4 changes: 3 additions & 1 deletion crates/next-api/src/server_actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ pub(crate) async fn create_server_actions_manifest(
build_server_actions_loader(project_path, page_name.clone(), actions, asset_context);
let evaluable = Vc::try_resolve_sidecast::<Box<dyn EvaluatableAsset>>(loader)
.await?
.context("loader module must be evaluatable")?;
.context("loader module must be evaluatable")?
.to_resolved()
.await?;

let chunk_item = loader.as_chunk_item(Vc::upcast(chunking_context));
let manifest = build_manifest(node_root, page_name, runtime, actions, chunk_item).await?;
Expand Down

0 comments on commit f4003b3

Please sign in to comment.