Hacker News new | ask | show | jobs
by weird-eye-issue 60 days ago
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

1 comments

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...

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.