Use webpack hot/dev middlewares

This commit is contained in:
Nicolas Gotchac
2016-11-25 13:14:30 +01:00
parent d188435fd8
commit 24bdf1cb98
7 changed files with 125 additions and 67 deletions

View File

@@ -128,9 +128,15 @@ export default class DappsStore {
}
_getHost (api) {
return process.env.NODE_ENV === 'production'
const host = process.env.DAPPS_URL || (process.env.NODE_ENV === 'production'
? this._api.dappsUrl
: '';
: '');
if (host === '/') {
return '';
}
return host;
}
_fetchBuiltinApps () {