fix NEXT_PUBLIC_ALLOW_SIGNUP reference

This commit is contained in:
Timur Ercan
2023-05-21 20:10:06 +02:00
parent b2aa4d6587
commit 73b72c6cce

View File

@ -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",