This commit is contained in:
Timur Ercan
2023-03-19 15:06:01 +01:00
parent 9009506bb6
commit dd67e1a6f0

View File

@ -14,7 +14,6 @@ export default function SignupPage(props: { source: string }) {
}
export async function getServerSideProps(context: any) {
const signupSource: string = context.query["source"];
if (process.env.ALLOW_SIGNUP !== "true")
return {
redirect: {
@ -23,6 +22,7 @@ export async function getServerSideProps(context: any) {
},
};
const signupSource: string = context.query["source"];
return {
props: {
source: signupSource ? signupSource : "",