Change CNAME for functions custom domains (#2863)

This commit is contained in:
Hemachandar authored and GitHub committed 2026-02-17 20:45:18 +05:30
1 parent 24880370b7
commit bff7bc0e62
3 files changed
+4 -6

No files matched your search

@@ -54,8 +54,6 @@
case 'cname':
if (service === 'sites') {
return $regionalConsoleVariables._APP_DOMAIN_SITES;
} else if (service === 'functions') {
return $regionalConsoleVariables._APP_DOMAIN_FUNCTIONS;
} else {
return $regionalConsoleVariables._APP_DOMAIN_TARGET_CNAME;
}
@@ -29,8 +29,8 @@
const ruleId = page.url.searchParams.get('rule');
const showCNAMETab = $derived(
Boolean($regionalConsoleVariables._APP_DOMAIN_FUNCTIONS) &&
$regionalConsoleVariables._APP_DOMAIN_FUNCTIONS !== 'localhost'
Boolean($regionalConsoleVariables._APP_DOMAIN_TARGET_CNAME) &&
$regionalConsoleVariables._APP_DOMAIN_TARGET_CNAME !== 'localhost'
);
const showATab = $derived(
!isCloud &&
@@ -26,8 +26,8 @@
} = $props();
const showCNAMETab = $derived(
Boolean($regionalConsoleVariables._APP_DOMAIN_FUNCTIONS) &&
$regionalConsoleVariables._APP_DOMAIN_FUNCTIONS !== 'localhost'
Boolean($regionalConsoleVariables._APP_DOMAIN_TARGET_CNAME) &&
$regionalConsoleVariables._APP_DOMAIN_TARGET_CNAME !== 'localhost'
);
const showATab = $derived(
!isCloud &&