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
  • Loading branch information
ndcunningham committed Jun 26, 2023
1 parent 2382c91 commit cf08214
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

1 comment on commit cf08214

@vercel
Copy link

@vercel vercel bot commented on cf08214 Jun 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx-dev-git-master-nrwl.vercel.app
nx.dev
nx-five.vercel.app

Please sign in to comment.