File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -195,10 +195,7 @@ const copyHandlerDependenciesForEdgeMiddleware = async (
195195}
196196
197197const NODE_MIDDLEWARE_NAME = 'node-middleware'
198- const copyHandlerDependenciesForNodeMiddleware = async (
199- ctx : PluginContext ,
200- _arg : NodeMiddlewareDefinition ,
201- ) => {
198+ const copyHandlerDependenciesForNodeMiddleware = async ( ctx : PluginContext ) => {
202199 const name = NODE_MIDDLEWARE_NAME
203200
204201 const srcDir = join ( ctx . standaloneDir , ctx . nextDistDir )
@@ -281,7 +278,7 @@ const createEdgeHandler = async (
281278) : Promise < void > => {
282279 await ( definition . runtime === 'edge'
283280 ? copyHandlerDependenciesForEdgeMiddleware ( ctx , definition . functionDefinition )
284- : copyHandlerDependenciesForNodeMiddleware ( ctx , definition . functionDefinition ) )
281+ : copyHandlerDependenciesForNodeMiddleware ( ctx ) )
285282 await writeHandlerFile ( ctx , definition )
286283}
287284
You can’t perform that action at this time.
0 commit comments