Browse Source

feat: set the PEERSERVER_PATH with an environment variable

Closes #213
Jonas Gloning 2 years ago
parent
commit
084fb8a4bd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bin/peerjs.ts

+ 1 - 1
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",