Skip to content

Commit

Permalink
fix(nextjs): For serve executor keepAliveTimeout should be camelCased
Browse files Browse the repository at this point in the history
closes: #17765
  • Loading branch information
ndcunningham committed Jun 26, 2023
1 parent 77430cb commit 5d7436d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/next/src/executors/server/server.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ export default async function* serveExecutor(
// Setting port that the custom server should use.
process.env.PORT = `${options.port}`;

const args = createCliOptions({ port, keepAliveTimeout, hostname });
const args = createCliOptions({ port, hostname });

if (keepAliveTimeout && !options.dev) {
args.push('--keepAliveTimeout', `${keepAliveTimeout}`);
}

const nextDir = resolve(context.root, buildOptions.outputPath);

Expand Down

0 comments on commit 5d7436d

Please sign in to comment.