Next.js doesn't call the local Rust API If the public api call is something containing "localhost," it's better to use "0.0.0.0" instead. NEXT_PUBLIC_API_URL = 'http://localhost:8080' If it's like this and doesn't work, try: NEXT_PUBLIC_API_URL = 'http://0.0.0.0:8080' React/Next.js 2022.11.26