|
|
@@ -3,7 +3,13 @@ const getFirstHost = () => {
|
|
|
let host = window.location.host;
|
|
|
host = host.split('.');
|
|
|
host = host.length == 3 ? host[1] : host[0];
|
|
|
- return process.env.NODE_ENV == 'development' ? 'huaml' : host;
|
|
|
+ if(process.env.NODE_ENV == 'development'){
|
|
|
+ return 'huaml';
|
|
|
+ }
|
|
|
+ if(process.env.NODE_ENV == 'local'){
|
|
|
+ return 'hhb';
|
|
|
+ }
|
|
|
+ return host;
|
|
|
};
|
|
|
|
|
|
const isProduction = process.env.NODE_ENV === 'production';
|