HTTP Tunnels for Local Development
This guide covers setting up HTTP tunnels to expose your local development environment to the internet, essential for testing webhooks and OAuth integrations.Overview
HTTP tunnels allow external services to communicate with your local development server, enabling:- Webhook testing from third-party services
- OAuth callback testing
- Integration testing with external APIs
- Sharing your local environment with team members
Quick Start
Temporary Tunnel (Recommended for Testing)
For quick testing and development:Permanent Tunnel Setup
1. Install Cloudflared
2. Login to Cloudflare
You need access to the HeyBilly Cloudflare account:3. Create Your Personal Tunnel
4. Configure DNS Routing
5. Create Configuration File
Create.cloudflared/your-name.yml
:
<Tunnel-UUID>
with the actual UUID from step 3, and <Your-user>
with your username.
6. Run Your Tunnel
Multiple Tunnel Configuration
Main Application Tunnel
Supabase Storage Tunnel
Running Multiple Tunnels
Environment Configuration
Update Environment Variables
Add these to your.env.local
:
Integration-Specific URLs
Update your integration configurations to use the tunnel URLs:HubSpot
Pipedrive
Spendesk
Use Cases
Webhook Testing
OAuth Development
Team Collaboration
Share your tunnel URL with team members for:- Code review and testing
- Integration testing
- Demo purposes
- Troubleshooting sessions
Troubleshooting
Common Issues
Tunnel Won’t Start
DNS Resolution Issues
Credential File Issues
Debug Mode
Enable verbose logging:Getting Help
- Check Cloudflare Tunnel Documentation
- Contact the team on Slack:
#squad-billy
- Ask @spyl-pennylane for Cloudflare account access