⚠️Limitations
Some pages still have the default theme. Why?
I have established that a page that I need isn't supported out of the box by Keycloakify, now what?
process.env.PUBLIC_URL not supported.
process.env.PUBLIC_URL not supported.import { kcContext as kcLoginThemeContext } from "keycloak-theme/login/kcContext";
import { kcContext as kcAccountThemeContext } from "keycloak-theme/login/kcContext";
const PUBLIC_URL = (()=>{
const kcContext = (()=>{
if( kcLoginThemeContext !== undefined ){
return kcLoginThemeContext;
}
if( kcAccountThemeContext !== undefined ){
return kcLoginThemeContext
}
return undefined;
})();
return (kcContext === undefined || process.env.NODE_ENV === "development")
? process.env.PUBLIC_URL
: `${kcContext.url.resourcesPath}/build`;
})();
// Assuming you have my-image.png in your public directory
// you can get an URL for it that will be correct regardless of the context with:
const imageUrl = `${PUBLIC_URL}/my-image.png`;Self hosted fonts
Other workarounds
Admin Console Theme not supported

Wellcome page not customizable

Field Names can't be runtime generated
Last updated
Was this helpful?
