Changes proposed in this PR:
We currently extract the "DMP ID" from the dmp.landingPageUrl property, and we use a RegEx to do it. However, the RegEx we were using didn't work for users on Production because there is no "/dmps/" in the path.
So I made a small change to check for the hostname and the NODE environment, and set a different RegEx for production.
Fixes #566
Changes proposed in this PR: We currently extract the "DMP ID" from the
dmp.landingPageUrl
property, and we use a RegEx to do it. However, the RegEx we were using didn't work for users on Production because there is no "/dmps/" in the path.So I made a small change to check for the hostname and the NODE environment, and set a different RegEx for production.