We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3546705 commit 1d6ae92Copy full SHA for 1d6ae92
src/cli/server.ts
@@ -30,7 +30,8 @@ program
30
const options = program.opts();
31
const HOST = options.host as string;
32
const PORT = Number.parseInt(String(options.port), 10);
33
-const AUTH_TOKEN = ((options.authToken as string | undefined)?.trim() ?? "") || undefined;
+const rawAuthToken = (options.authToken as string | undefined) ?? process.env.MUX_SERVER_AUTH_TOKEN;
34
+const AUTH_TOKEN = rawAuthToken?.trim() ? rawAuthToken.trim() : undefined;
35
36
class HttpIpcMainAdapter {
37
private handlers = new Map<string, (event: unknown, ...args: unknown[]) => Promise<unknown>>();
0 commit comments