Allow write actions to be disabled

This means we can disable it in production/staging, but keep it turned on in
preview.