File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -188,13 +188,13 @@ const writeHandlerFile = async (
188188 cache : undefined ,
189189 generator : GENERATOR ,
190190 name : DISPLAY_NAME_MIDDLEWARE ,
191- pattern : augmentMatchers ( middleware , nextConfig ) . map ( ( matcher ) => matcher . regexp ) ,
191+ pattern : augmentMatchers ( middleware , nextConfig ) . map ( ( matcher ) => matcher . sourceRegex ) ,
192192 } satisfies IntegrationsConfig
193193
194194 // Writing the function entry file. It wraps the middleware code with the
195195 // compatibility layer mentioned above.
196196 await writeFile (
197- join ( MIDDLEWARE_FUNCTION_DIR , `middleware .js` ) ,
197+ join ( MIDDLEWARE_FUNCTION_DIR , `${ MIDDLEWARE_FUNCTION_INTERNAL_NAME } .js` ) ,
198198 /* javascript */ `
199199 import { init as htmlRewriterInit } from './edge-runtime/vendor/deno.land/x/htmlrewriter@v1.0.0/src/index.ts'
200200 import { handleMiddleware } from './edge-runtime/middleware.ts';
You can’t perform that action at this time.
0 commit comments