Fix base url
This commit is contained in:
parent
e60eb8ca0d
commit
2f425bf005
@ -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);
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user