local-loop-by-ayan 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8,14 +8,13 @@ const commander_1 = require("commander");
|
|
|
8
8
|
const socket_io_client_1 = require("socket.io-client");
|
|
9
9
|
const axios_1 = __importDefault(require("axios"));
|
|
10
10
|
const chalk_1 = __importDefault(require("chalk"));
|
|
11
|
-
const
|
|
12
|
-
dotenv_1.default.config();
|
|
11
|
+
const PRODUCTION_SERVER = 'https://localloop-server.onrender.com';
|
|
13
12
|
const program = new commander_1.Command();
|
|
14
13
|
program
|
|
15
|
-
.version('1.0.
|
|
16
|
-
.requiredOption('-p, --port <number>', 'Local port to forward',
|
|
14
|
+
.version('1.0.1')
|
|
15
|
+
.requiredOption('-p, --port <number>', 'Local port to forward', '3000')
|
|
17
16
|
.option('-s, --subdomain <string>', 'Desired subdomain', 'random-dev')
|
|
18
|
-
.option('-h, --host <string>', 'Proxy Server URL', process.env.PROXY_HOST)
|
|
17
|
+
.option('-h, --host <string>', 'Proxy Server URL', process.env.PROXY_HOST || PRODUCTION_SERVER)
|
|
19
18
|
.parse(process.argv);
|
|
20
19
|
const options = program.opts();
|
|
21
20
|
const LOCAL_TARGET = `http://localhost:${options.port}`;
|