Use static hooks with environment variables