All perfect praise be to Allah, The Lord of the Worlds. I testify that there is none worthy of worship except Allah and that Muhammad,
, is His slave and Messenger.
There is nothing wrong in growing vanilla and then selling it to non-Muslims. Similarly, there is nothing wrong in selling pine trees to non-Muslims. What you mentioned doesn't prevent a Muslim from planting such plants and trading in them. The possibility that such means may lead to Haraam doesn't make them forbidden.
Allah Knows best.