Custom Domain Onboarding: 4 Zone Ownership Checkpoints for Merchant Migration
A merchant can own a custom domain without giving your commerce platform control of its DNS zone. To implement onboarding, establish that ownership boundary before you add the domain or write a record. TL;DR: For a platform-managed zone, add the domain, persist the returned zone_id on the tenant, upsert the complete record, and verify from a scheduled job. For a customer-managed zone, make the…
When custom domain onboarding occurs, it's crucial to establish the boundary of zone ownership before adding the domain or writing a DNS record. For a platform-managed zone, the domain can be added, and the returned zone_id should be persisted on the tenant. The complete record should then be upserted, and verification should be performed through a scheduled job.
In contrast, for a customer-managed zone, the customer must make the required DNS change as an explicit onboarding step. It's essential to keep the application state separate from provider identifiers to ensure that changing providers remains a deliberate migration operation. The key evaluation constraint is that refreshing the onboarding page must preserve the intended setup, and a delayed DNS verification should not hold the checkout application's request open. This experiment note provides a reproducible check rather than a benchmark.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to