fix: Login/Registration Dynamic page titles based on APP_TITLE

This commit is contained in:
Danny Avila 2024-05-20 13:20:34 -04:00
parent 79840763e7
commit b4a3efbc4d
2 changed files with 8 additions and 0 deletions

View file

@ -21,6 +21,10 @@ function Login() {
}
}, [isAuthenticated, navigate]);
useEffect(() => {
document.title = startupConfig?.appTitle || 'LibreChat';
}, [startupConfig?.appTitle]);
if (!startupConfig) {
return null;
}

View file

@ -13,6 +13,10 @@ const Registration: React.FC = () => {
const { data: startupConfig } = useGetStartupConfig();
const localize = useLocalize();
useEffect(() => {
document.title = startupConfig?.appTitle || 'LibreChat';
}, [startupConfig?.appTitle]);
const {
register,
watch,