Moved DISABLE_LOGIN check to getServerSideProps.

This commit is contained in:
Mike Cao 2022-08-01 18:42:07 -07:00
parent ab1e49e703
commit 68d35c0fc4
2 changed files with 8 additions and 5 deletions

View file

@ -35,9 +35,6 @@ if (process.env.FORCE_SSL) {
module.exports = {
env: {
currentVersion: pkg.version,
loginDisabled: process.env.DISABLE_LOGIN,
updatesDisabled: process.env.DISABLE_UPDATES,
telemetryDisabled: process.env.DISABLE_TELEMETRY,
},
basePath: process.env.BASE_PATH,
output: 'standalone',