mirror of
https://github.com/Nezumi-2711/9router.git
synced 2026-09-22 20:00:47 +00:00
Feat : Setup cloudflare worker for cloud endpoint
This commit is contained in:
@@ -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 ============
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user