From 084fb8a4bddfcb153a4cb861ba700c8352cd4b35 Mon Sep 17 00:00:00 2001 From: Jonas Gloning <34194370+jonasgloning@users.noreply.github.com> Date: Tue, 14 Feb 2023 18:50:40 +0100 Subject: [PATCH] feat: set the PEERSERVER_PATH with an environment variable Closes #213 --- bin/peerjs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/peerjs.ts b/bin/peerjs.ts index bf3f73222..d2c54479a 100644 --- a/bin/peerjs.ts +++ b/bin/peerjs.ts @@ -66,7 +66,7 @@ const opts = y type: "string", demandOption: false, describe: "custom path", - default: "/", + default: process.env["PEERSERVER_PATH"] || "/", }, allow_discovery: { type: "boolean",