Skip to content

Commit

Permalink
comment out pages and ssr layer
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed May 10, 2024
1 parent 59d7ad4 commit 6cdad98
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions packages/next-swc/crates/next-core/src/next_edge/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,13 @@ pub async fn get_edge_resolve_options_context(
get_invalid_styled_jsx_resolve_plugin(project_path);

let plugins = match ty {
ServerContextType::Pages { .. } => {
ServerContextType::AppSSR { .. }
| ServerContextType::PagesData { .. }
| ServerContextType::PagesApi { .. }
| ServerContextType::Pages { .. } => {
vec![]
}
ServerContextType::PagesData { .. }
| ServerContextType::PagesApi { .. }
| ServerContextType::AppRSC { .. }
ServerContextType::AppRSC { .. }
| ServerContextType::AppRoute { .. }
| ServerContextType::Middleware { .. }
| ServerContextType::Instrumentation => {
Expand All @@ -118,9 +119,6 @@ pub async fn get_edge_resolve_options_context(
Vc::upcast(invalid_styled_jsx_client_only_resolve_plugin),
]
}
ServerContextType::AppSSR { .. } => {
vec![]
}
};

// https://github.com/vercel/next.js/blob/bf52c254973d99fed9d71507a2e818af80b8ade7/packages/next/src/build/webpack-config.ts#L96-L102
Expand Down

0 comments on commit 6cdad98

Please sign in to comment.