diff --git a/packages/next/src/generators/application/lib/add-e2e.ts b/packages/next/src/generators/application/lib/add-e2e.ts index 6d3077927274f5..97af47fe5b2aee 100644 --- a/packages/next/src/generators/application/lib/add-e2e.ts +++ b/packages/next/src/generators/application/lib/add-e2e.ts @@ -224,12 +224,12 @@ async function getNextE2EWebServerInfo( { plugin: '@nx/next/plugin', serveTargetName: 'devTargetName', - serveStaticTargetName: 'serveStaticTargetName', + serveStaticTargetName: 'startTargetName', configFilePath, }, { defaultServeTargetName: defaultServeTarget, - defaultServeStaticTargetName: 'serve-static', + defaultServeStaticTargetName: 'start', defaultE2EWebServerAddress: `http://127.0.0.1:${e2ePort}`, defaultE2ECiBaseUrl: `http://localhost:${e2ePort}`, defaultE2EPort: e2ePort,