Moved env checks to server pages.
This commit is contained in:
@@ -2,6 +2,10 @@ import LogoutPage from './LogoutPage';
|
||||
import { Metadata } from 'next';
|
||||
|
||||
export default function () {
|
||||
if (process.env.DISABLE_LOGIN) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return <LogoutPage />;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user