/** ****************************************************************************************************
 * File: apiConfig.js
 * Project: hootenanny-ui
 * @author Matt Putipong on 3/2/18
 *******************************************************************************************************/

export const apiConfig = {
    host: window.location.protocol + '//' + window.location.host,
    port: '8080',
    path: '/hoot-services',
    translationServerPort: '8094',
    mapnikServerPort: '8000',
    mergeServerPort: '8096',
    queryInterval: 2000
};

export const hootConfig = {
  maxNodeCount: 10000
};

export default apiConfig;

export let baseUrl = `${ apiConfig.host }/hoot-services`;

@@ -384,25 +384,88 @@
 ost,
-%0A    port: '8080'
+ //host includes port, hostname is just host name%0A    port: window.location.port
 ,%0A  
@@ -734,25 +734,30 @@
 g.host %7D
-/hoot-services
+$%7B apiConfig.path %7D
 %60;%0A

use dynamic port and re-use path property