Skip to content

Commit a916210

Browse files
committed
Remove web-server from edge-ssr-app
1 parent 9dc2d46 commit a916210

File tree

11 files changed

+377
-694
lines changed

11 files changed

+377
-694
lines changed

crates/next-core/src/next_app/app_page_entry.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -155,22 +155,6 @@ async fn wrap_edge_page(
155155

156156
let next_config_val = &*next_config.await?;
157157

158-
// TODO(WEB-1824): add build support
159-
let dev = true;
160-
161-
// TODO(timneutkens): remove this
162-
let is_server_component = true;
163-
164-
let server_actions = next_config.experimental_server_actions().await?;
165-
166-
let sri_enabled = !dev
167-
&& next_config
168-
.experimental_sri()
169-
.await?
170-
.as_ref()
171-
.map(|sri| sri.algorithm.as_ref())
172-
.is_some();
173-
174158
let source = load_next_js_template(
175159
"edge-ssr-app.js",
176160
project_root.clone(),
@@ -179,13 +163,9 @@ async fn wrap_edge_page(
179163
"VAR_PAGE" => page.to_string().into(),
180164
},
181165
fxindexmap! {
182-
"sriEnabled" => serde_json::Value::Bool(sri_enabled).to_string().into(),
183166
// TODO do we really need to pass the entire next config here?
184167
// This is bad for invalidation as any config change will invalidate this
185168
"nextConfig" => serde_json::to_string(next_config_val)?.into(),
186-
"isServerComponent" => serde_json::Value::Bool(is_server_component).to_string().into(),
187-
"dev" => serde_json::Value::Bool(dev).to_string().into(),
188-
"serverActions" => serde_json::to_string(&server_actions)?.into(),
189169
},
190170
fxindexmap! {
191171
"incrementalCacheHandler" => None,

0 commit comments

Comments
 (0)