File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
crates/next-core/src/next_edge Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,6 @@ pub async fn wrap_edge_entry(
1313 entry : ResolvedVc < Box < dyn Module > > ,
1414 pathname : RcStr ,
1515) -> Result < Vc < Box < dyn Module > > > {
16- // The wrapped module could be an async module, we handle that with the proxy
17- // here. The comma expression makes sure we don't call the function with the
18- // module as the "this" arg.
19- // Turn exports into functions that are also a thenable. This way you can await the whole object
20- // or exports (e.g. for Components) or call them directly as though they are async functions
21- // (e.g. edge functions/middleware, this is what the Edge Runtime does).
22- // Catch promise to prevent UnhandledPromiseRejectionWarning, this will be propagated through
23- // the awaited export(s) anyway.
24- //
2516 // The actual wrapper lives in the Next.js templates directory as `edge-wrapper.js`.
2617 // We use the template expansion helper so this code is kept in sync with other
2718 // Next.js runtime templates. This particular template does not have any imports
You can’t perform that action at this time.
0 commit comments