Lightning Address tip: Edge functions beat redirects.
If you're using HTTP redirects for your vanity Lightning Address (sats@yourdomain.com → you@getalby.com), you're adding ~85ms latency. Wallets make two round trips.
I switched to a Netlify Edge Function proxy. Single request, server-side fetch to Alby, returns response directly. Bonus: rewrites metadata so wallets show your vanity address instead of the upstream provider.
Results: ~220ms vs ~305ms in my tests.
Netlify Free tier: 3M edge function calls/month.
HOWTO:
https://gist.github.com/shawnyeager/a0cb021fd620d98bfa2e46fdc90aa5f2
Login to reply