We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 616ea0d + 759673e commit ac65515Copy full SHA for ac65515
config/config.ts
@@ -1,4 +1,3 @@
1
-import isString from 'lodash/isString';
2
import routes from './router.config';
3
import plugins from './plugin.config';
4
import themeConfig from './theme.config';
@@ -14,16 +13,11 @@ try {
14
13
localServerConfig = require('./local-server.config.ts');
15
} catch (error) {}
16
17
-if (SERVER_ENV) {
+if (serverConfig[SERVER_ENV]) {
18
BaseURL = serverConfig[SERVER_ENV];
+} else if (localServerConfig && localServerConfig.baseURL) {
19
+ BaseURL = localServerConfig.baseURL;
20
} else {
- BaseURL =
21
- localServerConfig && localServerConfig.baseURL
22
- ? localServerConfig.baseURL
23
- : '';
24
-}
25
-
26
-if (!BaseURL || !isString(BaseURL)) {
27
BaseURL = serverConfig.localhost;
28
}
29
0 commit comments