mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
feat(cli): support HAPI_HOSTNAME env to override machine hostname (#94)
This commit is contained in:
@@ -35,7 +35,7 @@ export type SessionBootstrapResult = {
|
|||||||
|
|
||||||
export function buildMachineMetadata(): MachineMetadata {
|
export function buildMachineMetadata(): MachineMetadata {
|
||||||
return {
|
return {
|
||||||
host: os.hostname(),
|
host: process.env.HAPI_HOSTNAME || os.hostname(),
|
||||||
platform: os.platform(),
|
platform: os.platform(),
|
||||||
happyCliVersion: packageJson.version,
|
happyCliVersion: packageJson.version,
|
||||||
homeDir: os.homedir(),
|
homeDir: os.homedir(),
|
||||||
|
|||||||
Reference in New Issue
Block a user