@swell/cli 2.5.6 → 2.5.7
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/create-app-command.js +1 -1
- package/dist/lib/proxy.js +0 -7
- package/oclif.manifest.json +1 -1
- package/package.json +1 -2
|
@@ -503,7 +503,7 @@ export class CreateAppCommand extends SwellCommand {
|
|
|
503
503
|
}
|
|
504
504
|
async addFrontendAllowedHosts(projectType, configPath) {
|
|
505
505
|
// Configure allowedHosts for frameworks using Vite dev server
|
|
506
|
-
// This allows tunneling services (
|
|
506
|
+
// This allows tunneling services (localtunnel) to proxy requests to the local dev environment
|
|
507
507
|
switch (projectType.slug) {
|
|
508
508
|
case 'astro': {
|
|
509
509
|
await this.addAllowedHostsToAstro(configPath);
|
package/dist/lib/proxy.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { bin, install, Tunnel } from 'cloudflared';
|
|
2
2
|
import localtunnel from 'localtunnel';
|
|
3
|
-
import ngrok from 'ngrok';
|
|
4
3
|
import * as fs from 'node:fs';
|
|
5
4
|
import ora from 'ora';
|
|
6
5
|
import { LOCAL_PROXY_PROVIDER } from './constants.js';
|
|
@@ -70,12 +69,6 @@ export async function getProxyUrl(port, context) {
|
|
|
70
69
|
case 'local': {
|
|
71
70
|
return `http://localhost:${port}`;
|
|
72
71
|
}
|
|
73
|
-
case 'ngrok': {
|
|
74
|
-
return await ngrok.connect({
|
|
75
|
-
addr: port,
|
|
76
|
-
region: 'us', // TODO: make it configurable
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
72
|
case 'localtunnel': {
|
|
80
73
|
const tunnel = await localtunnel({ port });
|
|
81
74
|
return tunnel.url;
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swell/cli",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Swell's command line interface/utility",
|
|
6
6
|
"keywords": [
|
|
@@ -51,7 +51,6 @@
|
|
|
51
51
|
"localtunnel": "2.0.2",
|
|
52
52
|
"lodash": "4.17.21",
|
|
53
53
|
"mime-detect": "1.2.0",
|
|
54
|
-
"ngrok": "5.0.0-beta.2",
|
|
55
54
|
"node-fetch": "3.3.2",
|
|
56
55
|
"oclif": "4.0.3",
|
|
57
56
|
"open": "9.1.0",
|