"[feat] Emails retention periods/cleanup #158" (#286)

This commit is contained in:
Deepak S
2025-11-29 02:43:41 +05:30
committed by GitHub
parent 05a02844b2
commit 357d561a8e
4 changed files with 94 additions and 4 deletions
+11 -3
View File
@@ -1,9 +1,17 @@
import { env } from "~/env";
import {env} from "~/env";
export function isCloud() {
return env.NEXT_PUBLIC_IS_CLOUD;
return env.NEXT_PUBLIC_IS_CLOUD;
}
export function isSelfHosted() {
return !isCloud();
return !isCloud();
}
export function isEmailCleanupEnabled() {
const days = env.EMAIL_CLEANUP_DAYS;
if (days === undefined || isNaN(days) || days <= 0) {
return false;
}
return true;
}