Skip to content

Commit bff7bc0

Browse files
authored
Change CNAME for functions custom domains (#2863)
1 parent 2488037 commit bff7bc0

3 files changed

Lines changed: 4 additions & 6 deletions

File tree

src/lib/components/domains/recordTable.svelte

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@
5454
case 'cname':
5555
if (service === 'sites') {
5656
return $regionalConsoleVariables._APP_DOMAIN_SITES;
57-
} else if (service === 'functions') {
58-
return $regionalConsoleVariables._APP_DOMAIN_FUNCTIONS;
5957
} else {
6058
return $regionalConsoleVariables._APP_DOMAIN_TARGET_CNAME;
6159
}

src/routes/(console)/project-[region]-[project]/functions/function-[function]/domains/add-domain/verify-[domain]/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
const ruleId = page.url.searchParams.get('rule');
3030
3131
const showCNAMETab = $derived(
32-
Boolean($regionalConsoleVariables._APP_DOMAIN_FUNCTIONS) &&
33-
$regionalConsoleVariables._APP_DOMAIN_FUNCTIONS !== 'localhost'
32+
Boolean($regionalConsoleVariables._APP_DOMAIN_TARGET_CNAME) &&
33+
$regionalConsoleVariables._APP_DOMAIN_TARGET_CNAME !== 'localhost'
3434
);
3535
const showATab = $derived(
3636
!isCloud &&

src/routes/(console)/project-[region]-[project]/functions/function-[function]/domains/retryDomainModal.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
} = $props();
2727
2828
const showCNAMETab = $derived(
29-
Boolean($regionalConsoleVariables._APP_DOMAIN_FUNCTIONS) &&
30-
$regionalConsoleVariables._APP_DOMAIN_FUNCTIONS !== 'localhost'
29+
Boolean($regionalConsoleVariables._APP_DOMAIN_TARGET_CNAME) &&
30+
$regionalConsoleVariables._APP_DOMAIN_TARGET_CNAME !== 'localhost'
3131
);
3232
const showATab = $derived(
3333
!isCloud &&

0 commit comments

Comments
 (0)