diff --git a/.env.development b/.env.development index 7d4255adab..bdedaaab7d 100644 --- a/.env.development +++ b/.env.development @@ -31,4 +31,4 @@ RAILS_DB_PORT=5432 RAILS_DB_NAME=manifold_production RAILS_REDIS_URL=redis://redis:6379 -REACT_APP_ALLOW_SIGNUP=true +ALLOW_SIGNUP=false diff --git a/chart/princeton-manifold/templates/configmap-env.yaml b/chart/princeton-manifold/templates/configmap-env.yaml index 158d76b573..598617d82f 100644 --- a/chart/princeton-manifold/templates/configmap-env.yaml +++ b/chart/princeton-manifold/templates/configmap-env.yaml @@ -8,6 +8,7 @@ metadata: app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/managed-by: {{ .Release.Service }} data: + ALLOW_SIGNUP: "false" API_CABLE_HOST: princeton-manifold-production-api-cable API_CABLE_PORT: "3021" API_HOST: princeton-manifold-production-api-rails diff --git a/client/src/global/components/sign-in-up/LoginForm/index.js b/client/src/global/components/sign-in-up/LoginForm/index.js index 045937ba31..92ccb20c95 100644 --- a/client/src/global/components/sign-in-up/LoginForm/index.js +++ b/client/src/global/components/sign-in-up/LoginForm/index.js @@ -20,7 +20,7 @@ export default function LoginForm({ hideOverlay, willRedirect }) { - const signupEnabled = process.env.REACT_APP_ALLOW_SIGNUP === 'true'; + const signupEnabled = process.env.ALLOW_SIGNUP === 'true'; const { t } = useTranslation(); const dispatch = useDispatch(); const authentication = useFromStore("authentication"); diff --git a/client/webpack/templates/www_env.ejs b/client/webpack/templates/www_env.ejs index a5ce7022df..87c95c1dec 100644 --- a/client/webpack/templates/www_env.ejs +++ b/client/webpack/templates/www_env.ejs @@ -5,4 +5,5 @@ process.env.DOMAIN = "<%= env.DOMAIN %>" process.env.CLIENT_BROWSER_API_URL = "<%= env.CLIENT_BROWSER_API_URL %>" process.env.CLIENT_BROWSER_API_CABLE_URL = "<%= env.CLIENT_BROWSER_API_CABLE_URL %>" process.env.SSL_ENABLED = "<%= env.SSL_ENABLED %>" +process.env.ALLOW_SIGNUP = "<%= env.ALLOW_SIGNUP %>" process.version = "<%= process.version %>"