| import {setup, startTunnel} from 'cloudflared-tunnel' | |
| await setup() // setup the project | you need to do this only once | |
| await startTunnel({ | |
| host: 'http://localhost', // required | |
| port: 3000, // required | |
| }) // pass in the host and port of the server you want to tunnel | |