Converted variables to be runtime.
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
'use client';
|
||||
import { useConfig } from '@/components/hooks';
|
||||
import LoginForm from './LoginForm';
|
||||
import styles from './LoginPage.module.css';
|
||||
|
||||
export function LoginPage() {
|
||||
if (process.env.disableLogin) {
|
||||
const config = useConfig();
|
||||
|
||||
if (config?.loginDisabled) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user