diff --git a/README.md b/README.md index 02b89f5..b60ff9d 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,7 @@ $ mkcert localhost #### When using `ngrok-v1` > [!WARNING] -> This feature is experimental. +> This feature is deprecated. Before using the `serve` command, you need to install [ngrok](https://github.com/inconshreveable/ngrok) and [node-pty](https://www.npmjs.com/package/node-pty). diff --git a/src/serve/commands/index.ts b/src/serve/commands/index.ts index d331c93..4b063ab 100644 --- a/src/serve/commands/index.ts +++ b/src/serve/commands/index.ts @@ -19,7 +19,7 @@ export const installServeCommands = (program: Command) => { ) .option( "--proxy-type ", - "The type of proxy to use. local-proxy, ngrok-v1, or ngrok", + "The type of proxy to use. local-proxy or ngrok", "local-proxy", ) .option( diff --git a/src/serve/proxy/ngrok-v1-proxy.ts b/src/serve/proxy/ngrok-v1-proxy.ts index 950d102..f297bfb 100644 --- a/src/serve/proxy/ngrok-v1-proxy.ts +++ b/src/serve/proxy/ngrok-v1-proxy.ts @@ -25,7 +25,7 @@ async function tryImportNodePty(): Promise { } /** - * @experimental + * @deprecated */ export class NgrokV1Proxy implements ProxyInterface { private ptyProcess?: pty.IPty; diff --git a/src/serve/resolveProxy.ts b/src/serve/resolveProxy.ts index 1844abf..01bb488 100644 --- a/src/serve/resolveProxy.ts +++ b/src/serve/resolveProxy.ts @@ -34,7 +34,9 @@ export const resolveProxy = ( } if (options.proxyType === "ngrok-v1") { - console.warn("ngrok-v1 is experimental feature."); + console.warn( + `proxyType 'ngrok-v1' is deprecated. Please use 'ngrok' instead.`, + ); return { liffAppProxy: new NgrokV1Proxy({ ngrokCommand: options.ngrokCommand, diff --git a/src/setup.test.ts b/src/setup.test.ts index 22d8573..7bf26fa 100644 --- a/src/setup.test.ts +++ b/src/setup.test.ts @@ -107,7 +107,7 @@ Options: --host The host of the application server. --port The port number of the application server. -i, --inspect The flag indicates LIFF app starts on debug mode. (default: false) - --proxy-type The type of proxy to use. local-proxy, ngrok-v1, or ngrok (default: "local-proxy") + --proxy-type The type of proxy to use. local-proxy or ngrok (default: "local-proxy") --local-proxy-port The port number of the application proxy server to listen on when running the CLI. (default: "9000") --local-proxy-inspector-port The port number of the inspector proxy server to listen on when running the CLI. (default: "9223") --ngrok-command The command to run ngrok. (default: "ngrok")