Fix disable checks.

This commit is contained in:
Mike Cao 2022-10-28 10:34:50 -07:00
parent 98835bbc78
commit 246e4e5f4f
4 changed files with 10 additions and 10 deletions

View file

@ -17,7 +17,7 @@ export default function LoginPage({ pageDisabled }) {
export async function getServerSideProps() {
return {
props: {
pageDisabled: !!(process.env.DISABLE_LOGIN || process.env.DISABLE_ADMIN),
pageDisabled: !!process.env.DISABLE_LOGIN,
},
};
}