vona-core 5.0.98 → 5.0.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/utils/util.js +2 -2
- package/package.json +1 -1
package/dist/lib/utils/util.js
CHANGED
|
@@ -17,11 +17,11 @@ export class AppUtil extends BeanSimple {
|
|
|
17
17
|
return this.app.meta.appReadyInstances && this.app.meta.appReadyInstances[instanceName];
|
|
18
18
|
}
|
|
19
19
|
get protocol() {
|
|
20
|
-
const config = this.app.config;
|
|
20
|
+
const config = this.ctx ? this.ctx.config : this.app.config;
|
|
21
21
|
return config.server.serve.protocol || this.ctx?.protocol;
|
|
22
22
|
}
|
|
23
23
|
get host() {
|
|
24
|
-
const config = this.app.config;
|
|
24
|
+
const config = this.ctx ? this.ctx.config : this.app.config;
|
|
25
25
|
return config.server.serve.host || this.ctx?.host;
|
|
26
26
|
}
|
|
27
27
|
getAbsoluteUrl(path) {
|