Skip to content

Commit

Permalink
fix(nextjs): Custom server should work on fresh applications (nrwl#19833
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ndcunningham authored Oct 24, 2023
1 parent 39b5603 commit 1389fc0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/next/plugins/with-nx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ function withNx(

const userWebpackConfig = nextConfig.webpack;

const { createWebpackConfig } = require('../src/utils/config');
const { createWebpackConfig } = require('@nx/next/src/utils/config');
nextConfig.webpack = (a, b) =>
createWebpackConfig(
workspaceRoot,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export async function customServerGenerator(

project.targets['serve-custom-server'] = {
executor: '@nx/js:node',
defaultConfiguration: 'development',
defaultConfiguration: 'production',
options: {
buildTarget: `${options.project}:build-custom-server`,
},
Expand Down

0 comments on commit 1389fc0

Please sign in to comment.