{"slug": "shipping-an-ai-built-app-to-your-own-domain-the-dns-to-https-path-and-the-cost", "title": "Shipping an AI-built app to your own domain: the DNS-to-HTTPS path (and the cost trap nobody warns you about)", "summary": "A developer outlines the DNS and hosting steps required to deploy an AI-built app to a custom domain, highlighting common pitfalls such as apex vs. www configuration and SSL provisioning failures. The post compares free tiers from Cloudflare Pages, Vercel, and Netlify, warning that bandwidth and build minutes can incur unexpected costs, and recommends Cloudflare Pages as the most generous option for hobby or static sites.", "body_md": "An AI tool can turn a prompt into a working app in minutes. The part nobody shows you in the demo is the last mile: getting that app off a `*.vercel.app`\n\npreview URL and onto `yourdomain.com`\n\nwith a padlock next to it.\n\nThat last mile is DNS and hosting. It's not hard, but it has two or three traps that eat an afternoon — and one that quietly eats money every month. Here's the whole path, start to finish.\n\nEvery custom-domain setup comes down to two questions: what happens when someone types `yourdomain.com`\n\n, and what happens when they type `www.yourdomain.com`\n\n.\n\n`yourdomain.com`\n\nwith nothing in front. DNS rules say the apex normally needs an `www`\n\nsubdomain`cname.vercel-dns.com`\n\n, `your-site.netlify.app`\n\n, or `your-project.pages.dev`\n\n).Then pick one as canonical and redirect the other. \"www to apex\" or \"apex to www\" — either is fine, but **pick one** or you'll split your SEO and confuse analytics.\n\nThe most common mistake: adding only the\n\n`www`\n\nrecord, then wondering why`yourdomain.com`\n\nshows a blank page. You need both, plus a redirect.\n\nAll three major hosts issue free certificates (via Let's Encrypt) and auto-renew them. You don't buy an SSL cert in 2026. But provisioning silently fails in two situations, and the error messages are useless:\n\nDeploying to **Cloudflare Pages** while your domain is already on Cloudflare? None of this applies — it wires itself up.\n\n\"Free hosting\" is real, but the free tiers are shaped very differently, and the thing that bites you is almost never storage — it's **bandwidth** and **build minutes**, plus one licensing clause.\n\nRough shape of the three most common choices (always re-check current limits — these change):\n\n| Cloudflare Pages | Vercel (Hobby) | Netlify (Free) | |\n|---|---|---|---|\n| Bandwidth | Effectively unmetered | ~100 GB/mo, then upgrade | ~100 GB/mo, overages billed |\n| Build minutes | 500/mo | limited | ~300/mo |\n| Commercial use, free tier | Allowed | Not allowed |\nAllowed |\n| Custom domain + SSL | Free | Free | Free |\n\nTwo things to internalize:\n\nFor a hobby or static/marketing site, **Cloudflare Pages** is the boring, honest default — genuinely generous free tier, no commercial-use asterisk. For an app with server-side logic you're iterating on, Vercel and Netlify are excellent — just budget for the paid tier from day one instead of being surprised.\n\n`www`\n\nCNAME.`http://`\n\nand `https://`\n\n, apex and `www`\n\n, in an incognito window.That's the whole thing. The AI writes the app; this is the ten steps between \"it works on my screen\" and \"it works on my domain.\"\n\n*I keep field notes like this — real builds with AI tools, timed, with the raw numbers — over at Build Lab. The full walkthrough, with screenshots of each DNS panel, is here.*", "url": "https://wpnews.pro/news/shipping-an-ai-built-app-to-your-own-domain-the-dns-to-https-path-and-the-cost", "canonical_source": "https://dev.to/alex_ybuild/shipping-an-ai-built-app-to-your-own-domain-the-dns-to-https-path-and-the-cost-trap-nobody-warns-4i80", "published_at": "2026-07-09 02:54:59+00:00", "updated_at": "2026-07-09 03:41:18.860426+00:00", "lang": "en", "topics": ["developer-tools", "ai-tools", "ai-infrastructure"], "entities": ["Cloudflare Pages", "Vercel", "Netlify", "Let's Encrypt", "Build Lab"], "alternates": {"html": "https://wpnews.pro/news/shipping-an-ai-built-app-to-your-own-domain-the-dns-to-https-path-and-the-cost", "markdown": "https://wpnews.pro/news/shipping-an-ai-built-app-to-your-own-domain-the-dns-to-https-path-and-the-cost.md", "text": "https://wpnews.pro/news/shipping-an-ai-built-app-to-your-own-domain-the-dns-to-https-path-and-the-cost.txt", "jsonld": "https://wpnews.pro/news/shipping-an-ai-built-app-to-your-own-domain-the-dns-to-https-path-and-the-cost.jsonld"}}