From 6ab57b7b14ba4eee6b57c7f81d9d8c64d5adc703 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Fri, 14 Mar 2025 11:58:44 -0700 Subject: [PATCH] Update middleware.js --- src/middleware.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware.js b/src/middleware.js index b62bf823..f2011903 100644 --- a/src/middleware.js +++ b/src/middleware.js @@ -11,7 +11,7 @@ export function middleware(req) { if (!host || !allowedHosts.includes(host)) { // eslint-disable-next-line no-console console.error( - `Host validation failed for: ${host}. Hint: Set the HOMEPAGE_ALLOWED_HOSTS environment variable to allow requests from this host.`, + `Host validation failed for: ${host}. Hint: Set the HOMEPAGE_ALLOWED_HOSTS environment variable to allow requests from this host / port.`, ); return NextResponse.json({ error: "Host validation failed. See logs for more details." }, { status: 400 }); }