cloud trial refactor

This commit is contained in:
Philipinho
2025-04-23 16:07:58 +01:00
parent c528f7e858
commit 08f223899a
6 changed files with 15 additions and 5 deletions

View File

@ -74,6 +74,10 @@ export function getDrawioUrl() {
return getConfigValue("DRAWIO_URL", "https://embed.diagrams.net");
}
export function getBillingTrialDays() {
return getConfigValue("BILLING_TRIAL_DAYS");
}
function getConfigValue(key: string, defaultValue: string = undefined): string {
const rawValue = import.meta.env.DEV
? process?.env?.[key]