From 2c9125d8c4e3790a885ba5e737c985e228d1f6b5 Mon Sep 17 00:00:00 2001 From: k61b Date: Wed, 9 Aug 2023 10:06:36 +0300 Subject: [PATCH 1/2] chore: add ssr logics --- client/src/pages/404.tsx | 4 ++++ client/src/pages/login.tsx | 4 ++++ client/src/pages/recover.tsx | 4 ++++ client/src/pages/reset-password.tsx | 4 ++++ client/src/pages/signup.tsx | 4 ++++ 5 files changed, 20 insertions(+) diff --git a/client/src/pages/404.tsx b/client/src/pages/404.tsx index 1333ef3..6554cd7 100644 --- a/client/src/pages/404.tsx +++ b/client/src/pages/404.tsx @@ -17,4 +17,8 @@ const NotFound: NextPage = () => { ); }; +export async function getServerSideProps() { + return { props: {} }; +} + export default NotFound; diff --git a/client/src/pages/login.tsx b/client/src/pages/login.tsx index 298c612..629ae10 100644 --- a/client/src/pages/login.tsx +++ b/client/src/pages/login.tsx @@ -15,4 +15,8 @@ const LoginPage: NextPage = () => { ); }; +export async function getServerSideProps() { + return { props: {} }; +} + export default LoginPage; diff --git a/client/src/pages/recover.tsx b/client/src/pages/recover.tsx index 2ee12bd..218a9fb 100644 --- a/client/src/pages/recover.tsx +++ b/client/src/pages/recover.tsx @@ -15,4 +15,8 @@ const RecoverPage: NextPage = () => { ); }; +export async function getServerSideProps() { + return { props: {} }; +} + export default RecoverPage; diff --git a/client/src/pages/reset-password.tsx b/client/src/pages/reset-password.tsx index 528ecc5..09da836 100644 --- a/client/src/pages/reset-password.tsx +++ b/client/src/pages/reset-password.tsx @@ -15,4 +15,8 @@ const ResetPasswordPage: NextPage = () => { ); }; +export async function getServerSideProps() { + return { props: {} }; +} + export default ResetPasswordPage; diff --git a/client/src/pages/signup.tsx b/client/src/pages/signup.tsx index fc7d774..677bce4 100644 --- a/client/src/pages/signup.tsx +++ b/client/src/pages/signup.tsx @@ -15,4 +15,8 @@ const SignupPage: NextPage = () => { ); }; +export async function getServerSideProps(){ + return { props: {} }; +} + export default SignupPage; From 17448dbb168ca00f387ab612eb887d939f9626b8 Mon Sep 17 00:00:00 2001 From: k61b Date: Wed, 9 Aug 2023 10:09:40 +0300 Subject: [PATCH 2/2] fix: remove ssr for 404 --- client/src/pages/404.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/client/src/pages/404.tsx b/client/src/pages/404.tsx index 6554cd7..1333ef3 100644 --- a/client/src/pages/404.tsx +++ b/client/src/pages/404.tsx @@ -17,8 +17,4 @@ const NotFound: NextPage = () => { ); }; -export async function getServerSideProps() { - return { props: {} }; -} - export default NotFound;