Skip to content

Commit

Permalink
add matchers
Browse files Browse the repository at this point in the history
  • Loading branch information
feedthejim committed Feb 1, 2023
1 parent 5bb4c49 commit 2f8bba0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/next/src/build/webpack-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export async function webpackBuild(
target: string
appDir: string | undefined
noMangling: boolean
middlewareMatchers: MiddlewareMatcher[] | undefined
},
entrypointsParams: CreateEntrypointsParams
): Promise<number> {
Expand Down Expand Up @@ -77,18 +76,21 @@ export async function webpackBuild(
getBaseWebpackConfig(dir, {
...commonWebpackOptions,
runWebpackSpan,
middlewareMatchers: entrypoints.middlewareMatchers,
compilerType: COMPILER_NAMES.client,
entrypoints: entrypoints.client,
}),
getBaseWebpackConfig(dir, {
...commonWebpackOptions,
runWebpackSpan,
middlewareMatchers: entrypoints.middlewareMatchers,
compilerType: COMPILER_NAMES.server,
entrypoints: entrypoints.server,
}),
getBaseWebpackConfig(dir, {
...commonWebpackOptions,
runWebpackSpan,
middlewareMatchers: entrypoints.middlewareMatchers,
compilerType: COMPILER_NAMES.edgeServer,
entrypoints: entrypoints.edgeServer,
}),
Expand Down

0 comments on commit 2f8bba0

Please sign in to comment.