refactor(server): no color env (#13166)

This commit is contained in:
Jason Rasmussen
2024-10-03 16:58:15 -04:00
committed by GitHub
parent 0eb77147ef
commit e2bf6808ca
7 changed files with 117 additions and 34 deletions

View File

@@ -68,11 +68,16 @@ export class ConfigRepository implements IConfigRepository {
skipMigrations: process.env.DB_SKIP_MIGRATIONS === 'true',
vectorExtension: getVectorExtension(),
},
licensePublicKey: isProd ? productionKeys : stagingKeys,
storage: {
ignoreMountCheckErrors: process.env.IMMICH_IGNORE_MOUNT_CHECK_ERRORS === 'true',
},
workers,
noColor: !!process.env.NO_COLOR,
};
}
}