Are there any recommendations to prevent accidental dev/builds from happening on a production site? We run dev/build so frequently on our dev and staging sites that I'm extremely nervous one of us may absent-mindedly do the same on production without intending to.
On a production site you should only be able to run a dev/build if the user is logged in as a admin.
If your production site allows a dev/build to be run by anyone then you probably still have it set as a dev site, which is not good and means your site could be at risk from a security point of view for example anyone will have access to run a dev tasks as well as other scenarios.
More info on the environment types can be found below.
@Kirk, thank you, this is helpful. I hadn't thought of using user permissions to protect against running dev/build accidentally. I'm going to move everyone off of the admin account, and use it solely for actual admin tasks.