Skip to content

Commit

Permalink
Fix layer check for app-edge-rsc
Browse files Browse the repository at this point in the history
  • Loading branch information
mischnic committed Nov 28, 2024
1 parent ff88eb0 commit 2197248
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/next-api/src/server_actions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -405,16 +405,16 @@ pub async fn map_server_actions(graph: Vc<SingleModuleGraph>) -> Result<Vc<AllMo
// TODO: compare module contexts instead?
let layer = &**layer.await?;
match layer {
"app-rsc" => ActionLayer::Rsc,
"app-rsc" | "app-edge-rsc" => ActionLayer::Rsc,
"app-client" => ActionLayer::ActionBrowser,
// TODO really ignore SSR?
_ => return Ok(None),
}
}
None => return Ok(None),
};
// TODO old implementation did parse_actions(to_rsc_context(module))
// is really necessary?
// TODO the old implementation did parse_actions(to_rsc_context(module))
// is that really necessary?
Ok(match &*parse_actions(*module).await? {
Some(action_map) => Some((module, (layer, action_map.to_resolved().await?))),
None => None,
Expand Down

0 comments on commit 2197248

Please sign in to comment.