More cleanup
This commit is contained in:
parent
3158033d57
commit
9d0c41322c
|
|
@ -16,10 +16,10 @@ declare module "pinia" {
|
||||||
|
|
||||||
const appEnv = import.meta.env.VITE_APP_ENVIRONMENT || "local";
|
const appEnv = import.meta.env.VITE_APP_ENVIRONMENT || "local";
|
||||||
|
|
||||||
if (appEnv === "local") {
|
if (appEnv.startsWith("prod")) {
|
||||||
log.setLevel("trace");
|
|
||||||
} else {
|
|
||||||
log.setLevel("warn");
|
log.setLevel("warn");
|
||||||
|
} else {
|
||||||
|
log.setLevel("trace");
|
||||||
}
|
}
|
||||||
|
|
||||||
const i18n = setupI18n();
|
const i18n = setupI18n();
|
||||||
|
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -23,7 +23,7 @@ APP_ENVIRONMENT = env("IT_APP_ENVIRONMENT")
|
||||||
DEBUG = env.bool("IT_DJANGO_DEBUG", True if APP_ENVIRONMENT == "local" else False)
|
DEBUG = env.bool("IT_DJANGO_DEBUG", True if APP_ENVIRONMENT == "local" else False)
|
||||||
|
|
||||||
# check that IT_DEFAULT_ADMIN_PASSWORD is set
|
# check that IT_DEFAULT_ADMIN_PASSWORD is set
|
||||||
if not DEBUG:
|
if APP_ENVIRONMENT != "local":
|
||||||
# fails if not set
|
# fails if not set
|
||||||
env.str("IT_DEFAULT_ADMIN_PASSWORD")
|
env.str("IT_DEFAULT_ADMIN_PASSWORD")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue