浏览代码

feat: set the PEERSERVER_PATH with an environment variable

Closes #213
Jonas Gloning 2 年之前
父节点
当前提交
084fb8a4bd
共有 1 个文件被更改,包括 1 次插入1 次删除
  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",