From a50813931b1b1935ba0254f42757aff03eb8d3e1 Mon Sep 17 00:00:00 2001 From: "Arjun (OpenClaw)" Date: Sat, 7 Feb 2026 19:07:02 +0000 Subject: [PATCH] fix(frontend): allow localhost dev origins Expands Next.js allowedDevOrigins to include localhost/127.0.0.1 to reduce dev proxy ECONNRESET when binding next dev to 127.0.0.1. --- frontend/next.config.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/next.config.ts b/frontend/next.config.ts index e594f65b..8c034bc8 100644 --- a/frontend/next.config.ts +++ b/frontend/next.config.ts @@ -1,7 +1,11 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { - allowedDevOrigins: ["192.168.1.101"], + // In dev, Next may proxy requests based on the request origin/host. + // Allow common local origins so `next dev --hostname 127.0.0.1` works + // when users access via http://localhost:3000 or http://127.0.0.1:3000. + // Keep the LAN IP as well for dev on the local network. + allowedDevOrigins: ["192.168.1.101", "localhost", "127.0.0.1"], images: { remotePatterns: [ {