Fix base url

This commit is contained in:
Timofey Boyko 2024-05-17 11:38:05 +03:00
parent e60eb8ca0d
commit 2f425bf005
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ export function middleware(request: NextRequest) {
const host = request.headers.get("x-forwarded-host");
const proto = request.headers.get("x-forwarded-proto");
const redirectUrl = `${proto}:${host}`;
const redirectUrl = `${proto}://${host}`;
if (request.nextUrl.pathname === "/health") {
console.log("Get login health check for portal: ", redirectUrl);

View File

@ -34,7 +34,7 @@ export const getBaseUrl = () => {
const host = hdrs.get("x-forwarded-host");
const proto = hdrs.get("x-forwarded-proto");
const baseURL = `${proto}:${host}`;
const baseURL = `${proto}://${host}`;
return baseURL;
};