DEV Community

Deniz Akşimşek
Deniz Akşimşek

Posted on • Originally published at denizaksimsek.com on

Cloudflare Pages: Failed: an internal error occurred

I deploy my website on Cloudflare Pages (at time of writing). My builds were failing with the error message:

17:24:49.795    Deploying your site to Cloudflare's global network...
17:24:50.632    Failed: an internal error occurred

Enter fullscreen mode Exit fullscreen mode

No other information.

Googling yields that many things can cause this issue. In my case, it was a directory called _redirects/ in the output folder.

Cloudflare expects _redirects to be a file to read redirect information from. (Indeed, that’s what I was using it for — it was output to a directory by accident).

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay