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,