feat(domains): support apex domains and non-.com TLDs

Loosen the custom-domain regex to accept apex domains (1+ labels) in
addition to subdomains; the TLD already allowed any letters. Suppress
the CNAME record for apex hostnames since a CNAME is invalid at the zone
apex, and surface only the A record there. Drop the frontend apex
rejection and the misleading ".com" input suffix, and render the
domain-input prefix/suffix addons only when set.
This commit is contained in:
Rotimi Best
2026-06-14 10:09:40 +01:00
parent ee4d4922d6
commit c97284f870
5 changed files with 23 additions and 18 deletions
@@ -24,11 +24,15 @@
</script>
<InputGroup.Root class={cn('ui:w-full', className)} data-slot="domain-input">
<InputGroup.Addon>
<InputGroup.Text>{prefix}</InputGroup.Text>
</InputGroup.Addon>
{#if prefix}
<InputGroup.Addon>
<InputGroup.Text>{prefix}</InputGroup.Text>
</InputGroup.Addon>
{/if}
<InputGroup.Input {...restProps} {placeholder} bind:value {disabled} class="!ps-0.5" />
<InputGroup.Addon align="inline-end">
<InputGroup.Text>{suffix}</InputGroup.Text>
</InputGroup.Addon>
{#if suffix}
<InputGroup.Addon align="inline-end">
<InputGroup.Text>{suffix}</InputGroup.Text>
</InputGroup.Addon>
{/if}
</InputGroup.Root>