Running through the initial setup on Fedora 42, the backend services are started on 127.0.0.1 and the frontend service tries to connect to localhost, which on my system is ::1. This causes errors such as
Proxying challenges/current: /api/challenges/current → http://localhost:8002
Proxying: /api/tanks → http://localhost:8000
9:08:47 AM [vite] http proxy error: /api/challenges/current
Error: connect ECONNREFUSED ::1:8002
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
I was able to work around this by editing vite.config.ts and replacing localhost with 127.0.0.1.
Running through the initial setup on Fedora 42, the backend services are started on
127.0.0.1and the frontend service tries to connect tolocalhost, which on my system is::1. This causes errors such asI was able to work around this by editing
vite.config.tsand replacinglocalhostwith127.0.0.1.