Best approach to deploy to deploy to prod and preview domain

Context: We have a dev and master branch, which we want go to staging.website.com and app.website.com. We also want preview domains for all other branches. Currently we have have staging.website.com and have preview builds enabled for that worker and another worker that we use for app.website.com with preview builds disabled. Besides the fact that cf has created and renamed multiple PRs to "Update name in Wrangler configuration file to match deployed Worker" this works somewhat.

Questions: Is there a better/correct way to do this (ideally without having two workers)?

If no, is there a way to stop my preview builds from running on the master branch and disable the prs that cf makes to change the name in the wranger.jsonc?
Was this page helpful?