News for hackers. Stuff that matters.
Re:Web Search API by judge2020 on Monday October 05, 2026 @04:22PM (#49970143)
Note - you should not be hosting purely static sites with Workers, if you can avoid it, give CF Pages is actually free and unlimited (assuming you don't use "Functions", which are just workers in disguise).
Re:Web Search API by esseph on Monday October 05, 2026 @05:23PM (#49970998)
I am paying $0 for this worker for years now.

(Actually multiple, one for each domain)

Actually if you even search "static sites" now it just takes you to Workers & Pages in the dashboard.

Docs:

https://developers.cloudflare.com/workers/

Free plan limits:

https://developers.cloudflare.com/workers/platform/limits/#a...

Re:Web Search API by oh_no on Monday October 05, 2026 @06:08PM (#49971552)
you don't explain the advantage of workers over pages for a static site
Re:Web Search API by esseph on Monday October 05, 2026 @06:31PM (#49971732)
I think they've been merged, is my point. It's managed through the same interface now.

On the Pages docs website there is even a header that encourages you to use workers (though I don't think you're given a choice at this point), like pages in general are being deprecated.

---

Are you sure you want to use Pages?

Workers supports most Pages use cases and offers a broader feature set. It is Cloudflare's primary platform for building applications. Start new projects with Workers.

---

https://developers.cloudflare.com/pages/

---

Edit: Found this!

https://news.ycombinator.com/item?id=46037452

"We are not sunsetting Pages. We are taking all the Pages-specific features and turning them into general Workers features -- which we should have done in the first place. At some point -- when we can do it with zero chance of breakage -- we will auto-migrate all Pages projects to this new implementation, essentially merging the platforms. We're not ready to auto-migrate yet, but if you're willing to do a little work you can manually migrate most Pages projects to Workers today. If you'd rather not, that's fine, you can keep using Pages and wait for the auto-migration later."

"Now that Workers supports both serving static assets and server-side rendering, you should start with Workers. Cloudflare Pages will continue to be supported, but, going forward, all of our investment, optimizations, and feature work will be dedicated to improving Workers. We aim to make Workers the best platform for building full-stack apps, building upon your feedback of what went well with Pages and what we could improve."

Re:Web Search API by weird-eye-issue on Monday October 05, 2026 @08:35PM (#49972680)
This advice is a few years out of date

Pages are now essentially deprecated and Workers have dedicated ways to host static files and are the recommended path going forward for static and dynamic websites

Re:Web Search API by judge2020 on Monday October 05, 2026 @11:10PM (#49973710)
Huh, I do see

> Workers supports most Pages use cases and offers a broader feature set. It is Cloudflare's primary platform for building applications. Start new projects with Workers.

And I see that the assets[0] wrangler config key can also be setup so that hits it prefers hitting static files, so that they can still be served in a free and unlimited manner.

Although I imagine an official deprecation probably is a long ways off, and if they do it I hope they'd handle a large-scale migration for each page to its own worker with assets preserved.

0: https://developers.cloudflare.com/workers/static-assets/bill...

Re:Web Search API by kentonv on Monday October 05, 2026 @11:34PM (#49973858)
We will not force users to migrate from old Pages to Pages-in-Workers manually. We will either implement an automatic migration, or just keep supporting old Pages forever.