Feat : Setup cloudflare worker for cloud endpoint

This commit is contained in:
decolua
2026-02-09 11:27:41 +07:00
parent c68b875a36
commit 102c193112
25 changed files with 1739 additions and 82 deletions
+11
View File
@@ -746,6 +746,17 @@ export async function isCloudEnabled() {
return settings.cloudEnabled === true;
}
/**
* Get cloud URL (UI config > env > default)
*/
export async function getCloudUrl() {
const settings = await getSettings();
return settings.cloudUrl
|| process.env.CLOUD_URL
|| process.env.NEXT_PUBLIC_CLOUD_URL
|| "";
}
// ============ Pricing ============
/**