fix: update signup env var

This commit is contained in:
Mythie
2023-05-06 16:11:56 +10:00
parent 6934e573d5
commit d2c5657093
2 changed files with 3 additions and 3 deletions

View File

@ -24,11 +24,11 @@ export async function getServerSideProps(context: any) {
}, },
}; };
const ALLOW_SIGNUP = process.env.ALLOW_SIGNUP === "true"; const ALLOW_SIGNUP = process.env.NEXT_PUBLIC_ALLOW_SIGNUP === "true";
return { return {
props: { props: {
ALLOW_SIGNUP: ALLOW_SIGNUP, ALLOW_SIGNUP,
}, },
}; };
} }

View File

@ -33,7 +33,7 @@ services:
- SMTP_MAIL_USER=username - SMTP_MAIL_USER=username
- SMTP_MAIL_PASSWORD=password - SMTP_MAIL_PASSWORD=password
- MAIL_FROM=admin@example.com - MAIL_FROM=admin@example.com
- ALLOW_SIGNUP=true - NEXT_PUBLIC_ALLOW_SIGNUP=true
ports: ports:
- 3000:3000 - 3000:3000
volumes: volumes: