More cleanup

This commit is contained in:
Daniel Egger 2023-06-02 09:36:29 +02:00
parent 3158033d57
commit 9d0c41322c
7 changed files with 4 additions and 4 deletions

View File

@ -16,10 +16,10 @@ declare module "pinia" {
const appEnv = import.meta.env.VITE_APP_ENVIRONMENT || "local";
if (appEnv === "local") {
log.setLevel("trace");
} else {
if (appEnv.startsWith("prod")) {
log.setLevel("warn");
} else {
log.setLevel("trace");
}
const i18n = setupI18n();

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -23,7 +23,7 @@ APP_ENVIRONMENT = env("IT_APP_ENVIRONMENT")
DEBUG = env.bool("IT_DJANGO_DEBUG", True if APP_ENVIRONMENT == "local" else False)
# check that IT_DEFAULT_ADMIN_PASSWORD is set
if not DEBUG:
if APP_ENVIRONMENT != "local":
# fails if not set
env.str("IT_DEFAULT_ADMIN_PASSWORD")