Explorar el Código

feat: set the PEERSERVER_PATH with an environment variable

Closes #213
Jonas Gloning hace 2 años
padre
commit
084fb8a4bd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      bin/peerjs.ts

+ 1 - 1
bin/peerjs.ts

@@ -66,7 +66,7 @@ const opts =  y
       type: "string",
       type: "string",
       demandOption: false,
       demandOption: false,
       describe: "custom path",
       describe: "custom path",
-      default: "/",
+      default: process.env["PEERSERVER_PATH"] || "/",
     },
     },
     allow_discovery: {
     allow_discovery: {
       type: "boolean",
       type: "boolean",