pagefind icon indicating copy to clipboard operation
pagefind copied to clipboard

Configure max build file number

Open anoop-b opened this issue 1 year ago • 2 comments

Hitting a max limit on the number of build files (20000) on cloudflare pages.

Is there a way to configure the number of generated files?

Alternatively I'd like to explore a way to upload the generated assets to r2 or other other destinations if possible.

anoop-b avatar Jun 25 '24 12:06 anoop-b

The best issue to follow for this would be #74 — though there isn't work underway on that yet.

There shouldn't be a barrier to uploading Pagefind's files to another destination. You'd just need to run Pagefind, upload those files, and then remove the index from disk before finishing so Cloudflare Pages doesn't encounter them.

bglw avatar Jun 25 '24 23:06 bglw

for fragment hosted on R2 upload is real slow. 9934 fragments around 3MB in total size. Upload take 25 minutes.

rclone copy dist/pagefind/fragment forbidden-lab:fragment --progress

forbidden-lab avatar Jul 15 '24 18:07 forbidden-lab

I'll close this issue as a duplicate, but make sure to follow #74 where I'll post any updates :)

bglw avatar Nov 19 '24 21:11 bglw