mirror of
https://github.com/documenso/documenso.git
synced 2025-11-15 01:01:49 +10:00
qoc
This commit is contained in:
@ -14,7 +14,6 @@ export default function SignupPage(props: { source: string }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function getServerSideProps(context: any) {
|
export async function getServerSideProps(context: any) {
|
||||||
const signupSource: string = context.query["source"];
|
|
||||||
if (process.env.ALLOW_SIGNUP !== "true")
|
if (process.env.ALLOW_SIGNUP !== "true")
|
||||||
return {
|
return {
|
||||||
redirect: {
|
redirect: {
|
||||||
@ -23,6 +22,7 @@ export async function getServerSideProps(context: any) {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const signupSource: string = context.query["source"];
|
||||||
return {
|
return {
|
||||||
props: {
|
props: {
|
||||||
source: signupSource ? signupSource : "",
|
source: signupSource ? signupSource : "",
|
||||||
|
|||||||
Reference in New Issue
Block a user