Implements CONSOLE_DEV_MODE env var (#2517)

Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
Alex
2022-12-16 13:32:52 -06:00
committed by GitHub
parent f917f7d167
commit f61d0a68d5
3 changed files with 11 additions and 4 deletions

View File

@@ -272,3 +272,7 @@ func getMaxConcurrentDownloadsLimit() int64 {
return cu
}
func getConsoleDevMode() bool {
return strings.ToLower(env.Get(ConsoleDevMode, "off")) == "on"
}