Worker + Assets vs Pages + Worker?

I managed to deploy a full stack app with a D1 database on Workers with static assets but also on Pages with workers. It’s basically the same thing but not really. I’m not sure which option is best. I like that Pages have multiple environments which doesn’t seem to be the case with Workers. Am I missing anything from Workers if I deploy a pages app with workers? Using tanstack start if that matters.
2 Replies
Cyb3r-Jak3
Cyb3r-Jak33d ago
Workers assets is the future way to go. ?pages
SuperHelpflare
As announced during Developer Week, Cloudflare recommends all new projects use Workers Assets. Cloudflare Pages will continue to be supported, but, going forward, all of our investment, optimizations, and feature work will be dedicated to improving Workers. If there is something missing that you think Workers needs, please send it in #workers-and-pages-feature-suggestions

Did you find this page helpful?