From f1ec02fb6fd4545822c589fd00c1e0fddb1ea4f7 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 18 Feb 2025 10:19:18 -0800 Subject: [PATCH] Make heads up clearer --- src/middleware.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/middleware.js b/src/middleware.js index a32581cb..b62bf823 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 HOMEPAGE_ALLOWED_HOSTS 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.`, ); return NextResponse.json({ error: "Host validation failed. See logs for more details." }, { status: 400 }); }