Azure / static-web-apps-cli

Azure Static Web Apps CLI ✨
https://aka.ms/swa/cli-local-development
MIT License
597 stars 117 forks source link

fix: waitOn and fetch IPv4&v6 instead of localhost #704

Closed cjk7989 closed 1 year ago

cjk7989 commented 1 year ago

Fix: issue #663. Use 127.0.0.1 and [::1] for waitOn() and fetch() when using "swa start src --api-location api" with the default --host=localhost. Then check if any of them successes. This is because localhost may not be resolved to ipv4 on some systems.