Skip to content

Commit

Permalink
Show host if not found
Browse files Browse the repository at this point in the history
  • Loading branch information
fraxachun committed Feb 12, 2025
1 parent fac9e25 commit 3f5e3cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/src/middleware/redirectToMainHost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function withRedirectToMainHostMiddleware(middleware: CustomMiddleware) {
return NextResponse.redirect(redirectSiteConfig.url);
}

return NextResponse.json({ error: "Cannot resolve domain" }, { status: 404 })
return NextResponse.json({ error: `Cannot resolve domain: ${host}` }, { status: 404 });
}
return middleware(request);
};
Expand Down

0 comments on commit 3f5e3cc

Please sign in to comment.