quidproquo-webserver 0.0.53 → 0.0.55
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/lib/qpqWebServerUtils.js +3 -3
- package/package.json +1 -1
package/lib/qpqWebServerUtils.js
CHANGED
|
@@ -88,7 +88,7 @@ const getSubdomainRedirects = (configs) => {
|
|
|
88
88
|
};
|
|
89
89
|
exports.getSubdomainRedirects = getSubdomainRedirects;
|
|
90
90
|
const getEnvironmentDomainName = (configs) => {
|
|
91
|
-
const environment = (0, qpqCoreUtils_1.
|
|
91
|
+
const environment = (0, qpqCoreUtils_1.getApplicationModuleEnvironment)(configs);
|
|
92
92
|
const apexDomainName = (0, exports.getDomainName)(configs);
|
|
93
93
|
if (environment === 'production') {
|
|
94
94
|
return apexDomainName;
|
|
@@ -98,7 +98,7 @@ const getEnvironmentDomainName = (configs) => {
|
|
|
98
98
|
exports.getEnvironmentDomainName = getEnvironmentDomainName;
|
|
99
99
|
const getBaseDomainName = (qpqConfig) => {
|
|
100
100
|
const environmentDomain = (0, exports.getEnvironmentDomainName)(qpqConfig);
|
|
101
|
-
const feature = quidproquo_core_1.qpqCoreUtils.
|
|
101
|
+
const feature = quidproquo_core_1.qpqCoreUtils.getApplicationModuleFeature(qpqConfig);
|
|
102
102
|
if (feature) {
|
|
103
103
|
return `${feature}.${environmentDomain}`;
|
|
104
104
|
}
|
|
@@ -106,7 +106,7 @@ const getBaseDomainName = (qpqConfig) => {
|
|
|
106
106
|
};
|
|
107
107
|
exports.getBaseDomainName = getBaseDomainName;
|
|
108
108
|
const getServiceDomainName = (qpqConfig) => {
|
|
109
|
-
const service = quidproquo_core_1.qpqCoreUtils.
|
|
109
|
+
const service = quidproquo_core_1.qpqCoreUtils.getApplicationModuleName(qpqConfig);
|
|
110
110
|
const domainBase = (0, exports.getBaseDomainName)(qpqConfig);
|
|
111
111
|
return `${service}.${domainBase}`;
|
|
112
112
|
};
|