gabboman / wafrn

Wafrn is a federated social media inspired by tumblr. Join us and have fun
https://app.wafrn.net/dashboard/exploreLocal
GNU Affero General Public License v3.0
129 stars 39 forks source link

Fix proxy target to prevent ECONNREFUSED error in Node 17+ #131

Closed AmmarSiddiqi closed 1 month ago

AmmarSiddiqi commented 1 month ago

Starting with Node version 17, resolving http://localhost: doesn’t always map to http://127.0.0.1:, depending on the machine's configuration. This can lead to ECONNREFUSED errors when using a proxy that targets localhost. To prevent this, the proxy target has been updated from http://localhost: to http://127.0.0.1:. This change should ensure consistent connection across different environments.

Reference: https://v17.angular.io/guide/build#proxying-to-a-backend-server image

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
wafrn ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 26, 2024 5:21pm
gabboman commented 1 month ago

OH. SO THAT WAS THE ISSUE

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud