Hi Richard,
My understanding is yes, this is handled by the Messenger deployment.
Since you have separate DEV and PROD Genesys Cloud orgs, you would create the Messenger deployment in each respective org and use the generated snippet/Deployment Key for the corresponding website environment.
So effectively:
DEV Org → DEV Messenger Deployment → DEV snippet/Deployment Key → DEV website
PROD Org → PROD Messenger Deployment → PROD snippet/Deployment Key → PROD website
In our case, I haven't deployed the website code myself. We created the Messenger deployment in Genesys Cloud and provided the generated snippet/Deployment Key to our web team, who implemented it on the website.
The Genesys documentation covers generating and deploying the Messenger snippet here:
https://help.genesys.cloud/articles/deploy-messenger/
Hope this helps!
------------------------------
Phaneendra
Technical Solutions Consultant
------------------------------