DNS cloudflare Issue

What is the name of the domain?

aj-alamanmartinez.com

What is the issue you’re encountering

not access web

What feature, service or problem is this related to?

DNS records

What are the steps to reproduce the issue?

I’ve linked my github repository with cloudflare

I’ve bought a domain name via cloudflare

setup DNS in cloudflare for my account

but I can’t access my web
Am I missing some steps?

Screenshot of the error

Both your custom domain and default Cloudflare Pages subdomain show the same 404 error page. This should be a strong indicator that the problem is not related to your custom domain or DNS.

Please confirm if you have an index.html in the root directory of your project.

I’ve made my web with react.

There is no index.html, I’ve got a index.js

The problem was that when creating the page, I didn’t specify the framework I was using in the code. It’s resolved now, thanks for helping me.

Yes, by default Cloudflare Pages expects index.html as the index file to server your root directory.

If your page isn’t named index.html then you’d need to handle that in Javascript by defining your own behaviour for when the root page is accessed. Your framework is doing this for you automatically, but I’ll recommend diving into the resources linked below to understand how routing works in Cloudflare Pages.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.