Skip to content

Commit 002be39

Browse files
author
Micah Zoltu
committed
Make app-name configurable via environment variable.
1 parent 4f9c238 commit 002be39

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/node/cli.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -677,9 +677,7 @@ export async function setDefaults(cliArgs: UserProvidedArgs, configArgs?: Config
677677
}
678678
args["proxy-domain"] = finalProxies
679679

680-
if (!args["app-name"]) {
681-
args["app-name"] = "code-server"
682-
}
680+
args["app-name"] ??= process.env.CODE_SERVER_APP_NAME || "code-server"
683681

684682
args._ = getResolvedPathsFromArgs(args)
685683

0 commit comments

Comments
 (0)