From 207de711535632de1739f734ac33207e19c8b2b2 Mon Sep 17 00:00:00 2001 From: Z8MB1E Date: Wed, 7 Oct 2026 01:48:01 -0400 Subject: [PATCH] fix(dev): allow LAN hosts in allowedDevOrigins so the dev server hydrates on other devices --- next.config.mjs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/next.config.mjs b/next.config.mjs index c4247d24..33441fc6 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -5,6 +5,11 @@ import packageJson from "./package.json" with { type: "json" }; /** @type {import('next').NextConfig} */ const nextConfig = { + // Next 16 blocks dev-mode resources (HMR, chunks, fonts) for any Host header + // not listed here. Without this, loading the dev server from a LAN IP (e.g. a + // phone on http://192.168.1.2:3000) serves HTML whose JS never hydrates, so + // forms fall back to native GET submits (login "resets" with no request). + allowedDevOrigins: ["192.168.1.2", "192.168.1.*"], // Your Next.js config here env: { version: packageJson.version,