Hooks with production environment