Merge pull request #374 from kfiramar/fix/dev-allowed-origins

fix(dev): allow loopback HMR origins
This commit is contained in:
Diego Rodrigues de Sa e Souza
2026-03-15 01:10:56 -03:00
committed by GitHub
2 changed files with 9 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ const nextConfig = {
output: "standalone",
serverExternalPackages: ["better-sqlite3", "zod"],
transpilePackages: ["@omniroute/open-sse"],
allowedDevOrigins: ["192.168.*"],
allowedDevOrigins: ["localhost", "127.0.0.1", "192.168.*"],
typescript: {
// TODO: Re-enable after fixing all sub-component useTranslations scope issues
ignoreBuildErrors: true,

View File

@@ -0,0 +1,8 @@
import test from "node:test";
import assert from "node:assert/strict";
test("next config allows loopback dev origins alongside LAN access", async () => {
const { default: nextConfig } = await import("../../next.config.mjs");
assert.deepEqual(nextConfig.allowedDevOrigins, ["localhost", "127.0.0.1", "192.168.*"]);
});