Skip to content

Commit

Permalink
Make heads up clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
shamoon committed Feb 18, 2025
1 parent 68480a6 commit f1ec02f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
Expand Down

0 comments on commit f1ec02f

Please sign in to comment.