News for hackers. Stuff that matters.
Re:Cloudflare Pages is now Generally Available by cheeaun on Monday April 12, 2021 @11:04AM (#26780170)
I've been using Cloudflare Pages for a few of my sites. Been getting issues on one of them for the past few weeks and getting "Failed: an internal error occurred" on the deployment step. I've asked for support and also tweeted [1] but to no avail.

I eventually moved it back to GitHub Pages. My other sites seems okay tho'.

[1] https://twitter.com/cheeaun/status/1378709230765580293

Re:Cloudflare Pages is now Generally Available by kmf on Monday April 12, 2021 @11:29AM (#26780467)
kristian from pages team here - just DM-ed you, let's get this sorted!
Re:Cloudflare Pages is now Generally Available by FalconSensei on Thursday April 15, 2021 @11:58PM (#26829292)
Trying for like an hour to set it up, but it keeps failing on cloning repository. That is definitely not a good first impression, specially because the message doesn't say anything, just 'internal error', so it's impossible to debug and try to fix.

Googling for the error, I found a few similar questions, but all were responded with: go to discord. So... there's absolutely no way to sort it out by myself or without using discord?

``` 20:54:21.533 Initializing build environment. This may take up to a few minutes to complete 20:54:56.056 Success: Finished initializing build environment 20:54:56.056 Cloning repository... 20:54:59.840 Failed: an internal error occurred ```

Re:Cloudflare Pages is now Generally Available by sebseb111 on Friday April 16, 2021 @04:28AM (#26831154)
I have a lot problems with builds with this "internal error" too.

I have 2 websites, both gatsby I tried both: 1) gatsby build 2) fully static files (gatsby build on my local computer) and only public dir added to github repo

Websites 10.000 files and 13.000 files (small files 1kB to 300kB) html, css, js, png and webp

Sometimes my build is succefull for this 10.000 files website - like 1 of 5 tries But most build tries fail when deploying: 06:58:47.583 Finished 06:58:48.061 Deploying your site to Cloudflare's global network... 07:18:07.790 Failed due to an internal error

it looks like timeout after 20 minutes.. :(

Re:Cloudflare Pages is now Generally Available by libeclipse on Monday April 12, 2021 @11:06AM (#26780193)
Netlify is quite good. Allows you to install Cloudflare's 10 year backend certificate on it so you can turn on Strict HTTPS checking.
Re:Cloudflare Pages is now Generally Available by cheeaun on Monday April 12, 2021 @11:09AM (#26780227)
I'm using Netlify for one of my side projects. Liking it so far but been getting annoyed by the limited _headers/netlify.toml config these days (especially custom redirects).
Re:Cloudflare Pages is now Generally Available by swyx on Monday April 12, 2021 @11:37AM (#26780588)
what limitation are you running into? did something change recently?
Re:Cloudflare Pages is now Generally Available by cheeaun on Monday April 12, 2021 @12:09PM (#26781063)
I think it's been the same, just recently I need a way to set custom headers for specific paths. Documentation [1] says that I can use * or :placeholder(s?), but there's no examples other than "/*" (which matches everything).

I thought it can do matches like "/folder/*/*.html" but... actually can't. I try look around in the forums, seeing others got confused as well and in the end I gave up :D

As for redirects, I really like :splat [2], but for my use case, I need something can be matched in the middle of the URL string, e.g.: /blog/:splat/whatever. Maybe this is like a weird use-case, or rather I'm thinking of it like glob patterns or regex.

[1] https://docs.netlify.com/routing/headers/ [2] https://docs.netlify.com/routing/redirects/redirect-options/...

Re:Cloudflare Pages is now Generally Available by ashconnor on Monday April 12, 2021 @04:34PM (#26784804)
I got that error too but it still worked.