File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1212 import AddDomains from ' ./domains/add/view.svelte' ;
1313 import VerifyDomain from ' ./domains/verify/view.svelte' ;
1414 import ManageDomains from ' ./domains/manage/view.svelte' ;
15+ import { sdk } from ' $lib/stores/sdk' ;
1516
1617 const {
1718 region,
2425 } = $props ();
2526
2627 const siteId = ` project-${projectId } ` ;
28+ const isStage = sdk .forConsole .client .config .endpoint .includes (' stage' );
2729 let showAddDomainsWizard = $state (false );
2830 let showManageDomainsSheet = $state (false );
29- let primaryDomainForSite = $state (` imagine-${projectId }.stage.appwrite.network ` );
31+ let primaryDomainForSite = $state (
32+ ` imagine-${projectId }.${isStage ? ' stage.' : ' ' }appwrite.network `
33+ );
3034
3135 let showVerifyDomainsWizard = $state (false );
3236 let ruleIdForVerification = $state (null );
You can’t perform that action at this time.
0 commit comments