[box] Add before_deploy hook