File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
src/routes/(console)/project-[region]-[project]/sites/site-[site]/domains/add-domain Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 22
22
import { writable } from ' svelte/store' ;
23
23
import { onMount } from ' svelte' ;
24
24
import { ConnectRepoModal } from ' $lib/components/git/index.js' ;
25
- import { project , regionalConsoleVariables } from ' $routes/(console)/project-[region]-[project]/store' ;
25
+ import {
26
+ project ,
27
+ regionalConsoleVariables
28
+ } from ' $routes/(console)/project-[region]-[project]/store' ;
26
29
import { isCloud } from ' $lib/system' ;
27
30
import { getApexDomain } from ' $lib/helpers/tlds' ;
28
31
55
58
const apexDomain = getApexDomain (domainName );
56
59
let domain = data .domains ?.domains .find ((d ) => d .domain === apexDomain );
57
60
58
- const isSiteDomain = domain .endsWith ($regionalConsoleVariables ._APP_DOMAIN_SITES );
59
-
61
+ const isSiteDomain = domainName .endsWith ($regionalConsoleVariables ._APP_DOMAIN_SITES );
62
+
60
63
if (apexDomain && ! domain && isCloud && ! isSiteDomain ) {
61
64
try {
62
65
domain = await sdk .forConsole .domains .create ($project .teamId , apexDomain );
You can’t perform that action at this time.
0 commit comments