feat: DNS auto-configuration for Cloudflare, GoDaddy, and Porkbun #4043
Cross-repo impact
See what breaks downstream if this PR merges.
⮌ Merged
This pull request was merged into main.
c comment · e edit title · m merge · a approve · r request changes · ? shortcuts
Originally written by @ccantynz-alt on GitHub.
Imported from https://github.com/ccantynz-alt/AlecRae.com/pull/88
Summary
Backend (
apps/api/src/lib/dns-providers/)types.ts— sharedAutoConfigRecord/Resulttypes +inferApexDomain()helpercloudflare.ts— zone lookup by progressive label stripping, upsert per-record (existed/created/updated), proxied=false for DKIM compatibilitygodaddy.ts— PUT per-record via GoDaddy API, relative name conversion (@for apex)porkbun.ts— retrieve-all-then-create/edit pattern, credentials in POST bodyroutes/domains.ts— newPOST /:id/dns-autoconfigendpoint with Zod discriminated union validationFrontend
apps/web/lib/api.ts—domainsApi.autoConfig()+ response typesapps/web/app/(dashboard)/domains/page.tsx—DnsSetupWizardrebuilt: auto-configure section at top (credential inputs, "Configure Automatically →" button, result display), manual instructions section belowTest plan
🤖 Generated with Claude Code
https://claude.ai/code/session_01GYakKc6rtYKmTgknsK1AiY
Generated by Claude Code