TECH TASK: support simultaneous https tunnels in local dev
Context
- Ngrok is proprietary yucky stuff that costs $5/mo. This is a horrible barrier to entry to place in front of eager new contributors
- The only reason we use the paid version is because it provides a stable IP address for twilio webhooks that can then tunnel to a local dev machine
- But if we use an open-source alternative (localtunnel) to create ephemeral endpoints, we will still be able to receive verification codes for numbers, we just won't be able to re-verify in future sessions. But we rarely need to reverify anyway, so that's not much of a loss.
UPDATE:
- the only reason we use ngrok (a shared external IP) winds up creating contention for that IP (and/or race conditions) when more than one dev is using the same account with the same reserved IP at the same time. we should definitely ditch it!
Implementation Notes
basic install
install with
yarn add global localtunnel
create a local tunnel to port 3000:
lt -p 3000
docker support
see comment below...
Edited by aguestuser