Skip to content

Commit

Permalink
Revert "fix(nextjs): set localhost as hostname default (#17856)" (#17931
Browse files Browse the repository at this point in the history
)
  • Loading branch information
meeroslav authored and FrozenPandaz committed Jul 4, 2023
1 parent 33b9cc0 commit 541747f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions docs/generated/packages/next/executors/server.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
},
"hostname": {
"type": "string",
"description": "Hostname on which the application is served.",
"default": "localhost"
"description": "Hostname on which the application is served."
},
"buildLibsFromSource": {
"type": "boolean",
Expand Down
3 changes: 1 addition & 2 deletions packages/next/src/executors/server/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@
},
"hostname": {
"type": "string",
"description": "Hostname on which the application is served.",
"default": "localhost"
"description": "Hostname on which the application is served."
},
"buildLibsFromSource": {
"type": "boolean",
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/executors/server/server.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default async function* serveExecutor(
);
const projectRoot = context.workspace.projects[context.projectName].root;

const { port, keepAliveTimeout, hostname = 'localhost' } = options;
const { port, keepAliveTimeout, hostname } = options;

// This is required for the default custom server to work. See the @nx/next:app generator.
process.env.NX_NEXT_DIR = projectRoot;
Expand Down

0 comments on commit 541747f

Please sign in to comment.