Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/src/agent/sessionFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export type SessionBootstrapResult = {

export function buildMachineMetadata(): MachineMetadata {
return {
host: os.hostname(),
host: process.env.HAPI_HOSTNAME || os.hostname(),
platform: os.platform(),

Choose a reason for hiding this comment

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

[NIT] [DOCS] HAPI_HOSTNAME not documented in CLI env list

Why this is a problem: Users won't discover the new override because cli/README.md enumerates env vars and doesn't mention HAPI_HOSTNAME.

Suggested fix:

- `HAPI_HOSTNAME` - Override hostname reported to the server (default: OS hostname).

happyCliVersion: packageJson.version,
homeDir: os.homedir(),
Expand Down