Skip to content

Commit fc67c4b

Browse files
authored
fix(twilio-run): migrate from ngrok to @ngrok/ngrok for Apple Silicon support (#546)
1 parent bf537eb commit fc67c4b

6 files changed

Lines changed: 779 additions & 26 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
"twilio-run": patch
3+
---
4+
5+
Migrate from `ngrok@^3.3.0` to `@ngrok/ngrok@^1.7.0` (official ngrok package) for improved reliability and Apple Silicon support. This fixes spawn error -88 on Apple Silicon Macs through better cross-platform binary management that eliminates architecture-specific binary issues.
6+
7+
**Key improvements:**
8+
- Updates to @ngrok/ngrok v1.7.0 (latest stable)
9+
- Automatic authtoken detection from ngrok config files (now includes Windows support: `%USERPROFILE%\AppData\Local\ngrok\ngrok.yml`)
10+
- Fixed domain detection to correctly identify ngrok domains using precise TLD matching (uses `.endsWith('.ngrok.io')`, `.endsWith('.ngrok.dev')`, `.endsWith('.ngrok-free.app')` instead of substring matching)
11+
- Prevents false positives like "company.ngrokit.com" being treated as ngrok domains
12+
- Fixed authtoken regex to ignore inline comments in config files
13+
- Enhanced error messages with platform-specific troubleshooting guidance
14+
- Backward compatible: `--ngrok=myapp` automatically converts to `myapp.ngrok.io`
15+
- Supports all official ngrok TLDs: `.ngrok.io`, `.ngrok.dev`, `.ngrok-free.app`

packages/twilio-run/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ twilio-run --inspect
151151
# Exposes the Twilio functions via ngrok to share them
152152
twilio-run --ngrok
153153

154-
# Exposes the Twilio functions via ngrok using a custom subdomain (requires a paid-for ngrok account)
155-
twilio-run --ngrok=subdomain
154+
# Exposes the Twilio functions via ngrok using a custom subdomain (requires a paid ngrok account)
155+
twilio-run --ngrok=myapp
156156
```
157157

158158
### `twilio-run deploy`

0 commit comments

Comments
 (0)