Coding, Insights, and Digital Discoveries š©š»āš»
From Stay-at-Home Mom to a Developer After 50
So here I am, with my Next.js blog up and running on Vercel, feeling pretty good about how things are shaping up. But now itās time to take that next stepāgiving my blog its own unique domain. Something memorable, without that āvercel.appā part at the end. I heard Vercel could get really costly when traffic picks up. So my question is do I keep everything in Vercel, or venture over to a classic registrar like Namecheap for my domain? What seemed like a small choice is quickly turning into a rabbit hole of considerations, especially if Iām thinking about SEO, speed, ease of management, and the long-term costs if this blog really takes off.
First things first, I need to clarify what I really want out of this setup. Cost is a big one, for sure. Iām all for paying a bit more if it means a smoother experience, but Iād prefer to avoid any nasty billing surprises down the road, especially if my traffic starts picking up. Then thereās ease of deploymentāIāve been spoiled by Vercelās auto-deployments from Git, and I donāt want to give up that luxury. And daily management? Ideally, everything should be simple and streamlined. The less time I spend bouncing between different dashboards, the better. Plus, I want to make sure the blog loads fast for readers around the world, with strong SEO and security built in.
Starting with Vercelās domain service is tempting since Iām already hosting the blog there. The idea of keeping everything in one place sounds easyāno extra accounts to manage, no jumping back and forth between services. The cost for a .com domain is around $12 a year, which isnāt bad and even includes free WHOIS privacy. But thereās a catch here: while the domain cost is pretty standard, Vercelās hosting charges can increase as traffic spikes since the pricing is based on usage. Paying more for success is fine, but Iād rather avoid sudden budget surprises that could throw me off.
Itās hard to ignore how well Vercel integrates everything into one neat package. The Git-based automated deployment is like magicāevery push to the repository gets deployed instantly. Plus, thereās a global CDN, built-in image optimization, caching, and prerendering features that are great for speed and SEO without me having to mess with configurations. The DNS setup is also straightforward; while itās not the most advanced (lacking DNSSEC, for instance), it still gets the job done with basic DDoS protection in place. That said, if I hit a domain-related snag, Vercelās support might not be as domain-focused as Iād like.
Then thereās Namecheap, the trusty, old-school domain registrar thatās been around forever. Itās a bit cheaper to start, costing around 13 annually with free WHOIS privacy. More importantly, the pricing is fixedāno surprises if my blog suddenly goes viral. And even though Namecheap is purely a domain registrar, I donāt have to give up my precious Git deployment; Iād still handle that through Vercel. However, using Namecheap would mean managing my domains separately from my hosting, which isnāt ideal but isnāt the end of the world either.
What makes Namecheap appealing is its deeper domain management options, like DNS customization and DNSSEC support, which adds an extra layer of security. Plus, they have excellent domain-focused support, which Iād appreciate if any issues come up. As for SEO and speed, using Namecheap as the registrar while hosting on Vercel still allows me to leverage Vercelās global CDN and performance optimizations. Iād just need to make sure my DNS records are correctly set up.
The more I think about it, the more I realize that going with Namecheap for domains and Vercel for hosting might be the smarter move in the long run. Keeping my hosting and domain registration separate gives me more flexibility. If Vercelās hosting costs start to climb due to traffic growth, I wonāt be tied downāI can easily switch to a different host without having to deal with domain transfer headaches. In other words, Iām future-proofing myself here.
Now that Iām leaning towards Namecheap for my domains, I should have a plan in place for when hosting costs might become an issue as my traffic grows. Vercel is great while my site is relatively small, but as my blog (and potentially other projects) scale, I need a contingency plan. After all, Vercelās usage-based pricing model could get costly as traffic increases. So if hosting with Vercel becomes too expensive, Iād need to migrate to an alternative that still supports Next.js, but with a more predictable pricing structure.
Iāve already started to shortlist some options. Netlify is the first one that comes to mind. Itās similar to Vercel in many ways, optimized for modern web frameworks like Next.js, with a global CDN and automatic deployments based on Git. Whatās nice is that their paid plans offer a more predictable pricing structure compared to Vercelās pay-as-you-go model, which could be more affordable as traffic scales. While it may not be as tightly integrated with Next.js as Vercel is, it would still be a strong contender for hosting static or JAMstack sites.
Another option would be the DigitalOcean App Platform. Itās a bit more hands-on but offers fixed monthly pricing, which I like because of its predictability. If needed, I could go with a traditional VPS setup using DigitalOcean or similar providers like Linode or Vultr. This would give me full control over server configurations at a lower cost, but Iād have to deal with server management and scaling myself. Still, having that level of control isnāt a bad thing, especially when considering custom server configurations or optimizations.
Iāve also thought about AWS Amplify, which could be useful given its integration with other Amazon Web Services. It offers serverless functions and a global CDN, similar to Vercel, but the cost structure can be a bit tricky, especially when using multiple AWS services. It would require more careful monitoring of usage and pricing to avoid unexpected costs.
Cloudflare Pages is another interesting option. Their pricing is predictable, and they have a great global CDN with built-in security features. The only downside is that itās mainly designed for static sites or JAMstack applications, and while it does support Next.js, it doesnāt natively handle server-side rendering (SSR) as smoothly as Vercel does. Still, for most cases, it could be a viable alternative.
If Iām ever looking for the most control and lowest possible cost, self-hosting with a VPS (like Linode or Vultr) could be the answer. I could set up a server environment for my Next.js apps using Docker, with NGINX as a reverse proxy for better performance. Of course, this means taking on the responsibility of server management, but the trade-off would be lower hosting costs and more control over my infrastructure.
The plan is simple: stick with Vercel for now, while everything is small and manageable, and enjoy its seamless integration and deployment workflow. But if costs start getting out of hand, Iāll be prepared to switch to an alternative like Netlify or DigitalOcean for a more predictable and scalable solution. And by choosing Namecheap for domains, Iām keeping things flexible and future-proof, ensuring that if I ever need to change hosts, my domain is not locked into a specific service.
Now, Iām ready to get my Namecheap domain connected to Vercel. Iāll start by adding my domain to Vercelās dashboard, update my DNS settings on Namecheap, and verify everything on Vercel. Itās a few extra steps, but nothing too complicated. If I want a subdomain, Iāll add a CNAME record in Namecheapās DNS settings. Once everythingās verified and tested, my blog will be live on its own domain.
Now that Iāve chosen Namecheap, hereās my plan to hook it up to my Vercel-hosted Next.js blog. Step-by-step, hereās what Iāll do:
[!note] When you add a domain to Vercel, Vercel can provide either:
If I want a subdomain (like www.mycoolblog.com
), Iāll set it up here:
www
NOTE
I did something wrong here when setting up the domain with vercel. I mistakenly use www.sailingdigital.online, the subdomain as my preferred version of domain, which is not my intention. Here is how I correct it, go to vercel's domains page, change sailingdigital.online to no-redirect, and www.sailingdigital.online to be with redirect.
The main point here is that the preferred domain (sailingdigital.online) should have a Type A record with a host of @, while the redirect url should have a Type CNANE record with the hose of www. Since I use NameCheap for domain regitration and vercel for hosting, these two shouldn't have conflict over this setup. I did this wrong at the initial stage by accident, the Google Search Console had difficult time to crawl all my pages and index them.
Finally, time to test the connection! I typed my new domain in a browser to check that everything loads correctly. I also typed the subdomain with www prefix, and it redirect to my domain smoothly. And voila! My blog is now live on its own with this shinny custom domain.
Choosing this setup not only works for my current needs but also keeps me prepared for the future. Iām setting myself up for growth with predictable costs and flexibility to expand my digital presence across multiple sites. If after this blog I start an e-commerce site, or a portfolio for freelancing jobs, Iāll be ready to adapt as things evolve. Now, itās time to get back to creating awesome content and let the tech side run smoothly in the background.