@shushed/helpers 0.0.200-v2-20251126161921 → 0.0.200-v2-20251127150547
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.
|
@@ -92,6 +92,9 @@ class Runtime {
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
getRuntimeUrl(options) {
|
|
95
|
+
if (options.runtimeUrl && this.isDeployment) {
|
|
96
|
+
return options.runtimeUrl;
|
|
97
|
+
}
|
|
95
98
|
const systemEnvName = this.getSystemEnvName(options);
|
|
96
99
|
const [_, ...idParts] = (process.env.GCLOUD_PROJECT || '').split('-');
|
|
97
100
|
if (process.env.RUNTIME_URL) {
|
|
@@ -130,6 +133,9 @@ class Runtime {
|
|
|
130
133
|
}
|
|
131
134
|
return systemEnvName || 'test-env';
|
|
132
135
|
}
|
|
136
|
+
get isDeployment() {
|
|
137
|
+
return process.env.K_SERVICE === 'manager';
|
|
138
|
+
}
|
|
133
139
|
}
|
|
134
140
|
exports.default = Runtime;
|
|
135
141
|
;
|