diff --git a/apps/web/pages/login.tsx b/apps/web/pages/login.tsx index 6abdd6aaf..f340a2d31 100644 --- a/apps/web/pages/login.tsx +++ b/apps/web/pages/login.tsx @@ -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 { props: { - ALLOW_SIGNUP: ALLOW_SIGNUP, + ALLOW_SIGNUP, }, }; } diff --git a/docker/compose.yml b/docker/compose.yml index a53b016d1..b427f419c 100644 --- a/docker/compose.yml +++ b/docker/compose.yml @@ -33,7 +33,7 @@ services: - SMTP_MAIL_USER=username - SMTP_MAIL_PASSWORD=password - MAIL_FROM=admin@example.com - - ALLOW_SIGNUP=true + - NEXT_PUBLIC_ALLOW_SIGNUP=true ports: - 3000:3000 volumes: