fix: remove legacy platform env fallbacks
This commit is contained in:
@@ -105,9 +105,8 @@ export class SzPlatformClient {
|
||||
const connectionAddress =
|
||||
this.connectionAddress ||
|
||||
(await this.getConfiguredEnvVar('SERVEZONE_PLATFORM_URL')) ||
|
||||
this.getConnectionAddressFromBindings() ||
|
||||
(await this.getConfiguredEnvVar('SERVEZONE_API_DOMAIN'));
|
||||
if (!connectionAddress) throw new Error('SERVEZONE_PLATFORM_URL or SERVEZONE_API_DOMAIN is required');
|
||||
this.getConnectionAddressFromBindings();
|
||||
if (!connectionAddress) throw new Error('SERVEZONE_PLATFORM_URL or platform binding endpoint is required');
|
||||
return connectionAddress;
|
||||
}
|
||||
|
||||
@@ -138,8 +137,7 @@ export class SzPlatformClient {
|
||||
private async getConfiguredAuthorizationString() {
|
||||
return (
|
||||
(await this.getConfiguredEnvVar('SERVEZONE_PLATFORM_AUTHORIZATION')) ||
|
||||
(await this.getConfiguredEnvVar('SERVEZONE_PLATFORM_TOKEN')) ||
|
||||
(await this.getConfiguredEnvVar('SERVEZONE_PLATFROM_AUTHORIZATION'))
|
||||
(await this.getConfiguredEnvVar('SERVEZONE_PLATFORM_TOKEN'))
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user