Change CNAME for functions custom domains (#2863)

This commit is contained in:
Hemachandar
2026-02-17 20:45:18 +05:30
committed by GitHub
parent 24880370b7
commit bff7bc0e62
3 changed files with 4 additions and 6 deletions
@@ -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 &&