Set up a drupal variable, initializing it in your settings.php. You can then change this for your local environment so that a code change isn't required for every code push. Then include the appropriate react entry point based on this variable.
view source