Skip to content

Purchasing a Domain on Cloudflare and Registering it with Pages

I used to purchase domains from AWS, but as I’ve been deploying more often on Cloudflare, I decided to buy domains from Cloudflare as well.

I’m recording the purchase process as a reminder.

Purchasing a Domain on Cloudflare Pages

  1. From the left menu of the Cloudflare dashboard, select “Domain Registration”.

    Image from Gyazo

  2. Search for the domain you want to add and click the “Check” button.

    Image from Gyazo

  3. You’ll be taken to a page to complete the registration. Enter your payment information and click the “Complete Purchase” button.

    Image from Gyazo

  4. When the purchase is complete, you’ll see a message like this:

    Image from Gyazo

If an Error Occurs

Here’s what to do if you encounter the following error when purchasing a domain:

The actual error will look like this:

We're sorry, but a problem occurred.

Upon investigation, it seems that Cloudflare payments may fail with Rakuten Card.

https://blog.stin.ink/articles/sitn-ink-from-google-to-cloudflare

There might be other possibilities, but it might be worth trying with a different credit card.

In my case, I was able to make the purchase after switching to different credit card.

Domain Configuration

After purchasing the domain, configure it for use with Pages.

  1. From the Cloudflare dashboard, select “Workers & Pages” and choose the project where you want to use the purchased domain.

    Image from Gyazo

  2. Next, select the “Custom Domains” tab and click the “Set up a custom domain” button.

    Image from Gyazo

  3. Enter the domain name and click the “Continue” button.

    Image from Gyazo

  4. Review the settings, and if everything looks good, click the “Activate Domain” button.

    Image from Gyazo

This completes the domain configuration.

It may take some time before it’s actually usable, so be patient. (Up to 48 hours)