mirror of
https://github.com/documenso/documenso.git
synced 2025-11-20 19:51:32 +10:00
fix NEXT_PUBLIC_ALLOW_SIGNUP reference
This commit is contained in:
@ -15,7 +15,7 @@ export default function SignupPage(props: { source: string }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function getServerSideProps(context: any) {
|
export async function getServerSideProps(context: any) {
|
||||||
if (process.env.ALLOW_SIGNUP !== "true")
|
if (process.env.NEXT_PUBLIC_ALLOW_SIGNUP !== "true")
|
||||||
return {
|
return {
|
||||||
redirect: {
|
redirect: {
|
||||||
destination: "/login",
|
destination: "/login",
|
||||||
|
|||||||
Reference in New Issue
Block a user