fix: approximated not verifying domain, change request type for /agents

route
This commit is contained in:
Rotimi Best
2026-05-21 14:05:37 +01:00
parent c1bbd02f8e
commit ec92fc5083
23 changed files with 179 additions and 176 deletions
@@ -294,6 +294,8 @@
});
}
const DOMAIN_POLL_INTERVAL_MS = 15000;
onMount(() => {
if ($currentOrg.customDomain) {
void refreshDomainApex($currentOrg.customDomain);
@@ -304,6 +306,20 @@
$effect(() => {
resetErrors(siteName, customDomain);
});
$effect(() => {
const shouldPoll =
Boolean($currentOrg.customDomain) && currentDomainStatus !== null && currentDomainStatus !== 'verified';
if (!shouldPoll) return;
const interval = window.setInterval(() => {
if (isRefreshing || isCustomDomainLoading || document.hidden) return;
void handleRefreshCustomDomain(true);
}, DOMAIN_POLL_INTERVAL_MS);
return () => window.clearInterval(interval);
});
</script>
<Field.Group class="w-full max-w-md! px-2">
@@ -330,7 +346,7 @@
<Button variant="outline" onclick={handleSaveSiteName} disabled={isLoading}>
{$t('components.settings.domains.update')}
</Button>
<VisitOrgSiteButton />
<VisitOrgSiteButton forceSubdomain />
</Field.Field>
</Field.Set>