-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement ngrok v1 proxy for serve command (#4)
## Description I implemented the integration with [ngrok v1](https://github.com/inconshreveable/ngrok) as one of the integrations for the Tunnel feature. This feature uses ngrok to tunnel the URL passed to the serve command, and sets the ngrok URL as the endpoint URL for the LIFF app. Below is what the terminal looks like when the command is executed: ``` ❯ npx @line/liff-cli serve -l 1234567890-aBcDeFg -u http://127.0.0.1:8081 --proxy-type ngrok-v1 --ngrok-command ngrok Successfully updated endpoint url for LIFF ID: 1234567890-aBcDeFg. → LIFF URL: https://liff.line.me/1234567890-aBcDeFg → Proxy server: https://abc123.ngrok.example.com/ ``` In order for users to use this feature, they need to install `node-pty`. `node-pty` is a large package. ref: https://bundlephobia.com/package/[email protected] Because not all users will use the ngrok v1 integration feature, I specified it in `peerDependencies`.
- Loading branch information
Showing
11 changed files
with
341 additions
and
19 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.