Skip to content

Commit

Permalink
fix(nextjs): Fix order, and wrong number of input parameters call to …
Browse files Browse the repository at this point in the history
…createWebpackConfig()
  • Loading branch information
tvdoan committed Aug 8, 2024
1 parent 76268b7 commit 274a04e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/next/plugins/with-nx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,9 @@ function withNx(
_nextConfig.nx?.fileReplacements
? joinPathFragments(workspaceRoot, projectDirectory)
: workspaceRoot,
_nextConfig.nx?.assets || options.assets,
_nextConfig.nx?.fileReplacements || options.fileReplacements
projectDirectory,
_nextConfig.nx?.fileReplacements || options.fileReplacements,
_nextConfig.nx?.assets || options.assets
)(userWebpackConfig ? userWebpackConfig(a, b) : a, b);

return nextConfig;
Expand Down

0 comments on commit 274a04e

Please sign in to comment.