Workers Preview Builds
Howdy,
Is it possible for Workers to have preview branches like Pages? The compatibility matrix says it's doable, and I'm aware of
wrangler versions upload
- but I'm most interested in previews being automatically made for branches like we can with pages now. It would be really helpful in allowing migration off next-on-pages to opennext. Thanks!Cloudflare Docs
Workers vs. Pages (compatibility matrix) · Cloudflare Workers docs
Compatibility matrix for asset hosting on Cloudflare Workers and Pages.
2 Replies
Worst case scenario I can do all the building of the non primary branch on GitHub Actions and upload it :thinkMan: But that feels a little much for something Pages can already do.
It should be built into the platform and I suspect the CF team is working on it... but in the meantime, I did come across this repo which would be a decent starting point if you are going to set it up yourself
https://github.com/ajzbc/cloudflare-workers-pr-previews
GitHub
GitHub - ajzbc/cloudflare-workers-pr-previews: Automatically deploy...
Automatically deploy PR preview Cloudflare workers - ajzbc/cloudflare-workers-pr-previews