added switch for login check on watch case and reps

This commit is contained in:
2024-01-26 11:52:06 +00:00
parent c5f61da8ed
commit 79da26733c
3 changed files with 178 additions and 153 deletions
+9
View File
@@ -91,6 +91,15 @@ const SignIn = (props) => {
};
export async function getServerSideProps(context) {
if (process.env.SHOWLOGIN == false) {
return {
redirect: {
destination: "/404",
permanent: false,
},
};
}
const csrfToken = await getCsrfToken(context);
console.log(
"\n//////////////////////\n",