News for hackers. Stuff that matters.
Re:Cloudflare Pages is now Generally Available by sebseb111 on Friday April 16, 2021 @04:19AM (#26831078)
Cache control could be in config file like in firebase - for example gatsby provide example cache config for firebase:

``` { "hosting": { "public": "public", "ignore": ["firebase.json", "*/.", "*/node_modules/*"], "headers": [ { "source": "*/", "headers": [ { "key": "cache-control", "value": "public, max-age=0, must-revalidate" } ] }, ```

It would be great to add "clean urls" - removing trailing slash for directory urls, like in firebase: ``` "hosting": { // ...

  // Removes trailing slashes from URLs
  "trailingSlash": false
} ```

I have also a lot of problems with builds. I tried 2 ways od deploying static pages to Cloudflare:

1) gatsby build 2) fully static page (gatsby build on my local computer and push "public" dir to github repo

both ways are generating error:

08:35:00.770 Finished 08:35:01.232 Deploying your site to Cloudflare's global network... 08:54:16.759 Failed due to an internal error

it looks like a hidden limit - build timeout 20 minutes? My website has 13000 small files (html, js, css, png, webp - max file size is about 300kB) and I cant deploy it because of this error

I even limited image sizes from 1600px to 800px, and limited files to about 10000 files and still I get error

I have another website with 11000 files and I use "gatsby build" - and build is successful for 1 of 5 tries...

There are no comments on this comment yet.