keycloak-scim/js/apps/account-ui/test/utils.ts
Jon Koops 7afd75ba08
Use browser router for Account Console (#22192)
Closes #27442

Signed-off-by: Jon Koops <jonkoops@gmail.com>
2024-03-04 12:38:28 +00:00

13 lines
324 B
TypeScript

import { getRootPath } from "../src/utils/getRootPath";
export function getBaseUrl(): string {
return process.env.KEYCLOAK_SERVER ?? "http://localhost:8080";
}
export function getAccountUrl() {
return getBaseUrl() + getRootPath();
}
export function getAdminUrl() {
return getBaseUrl() + "/admin/master/console/";
}