fix: remove legacy platform env fallbacks
This commit is contained in:
@@ -3,6 +3,6 @@
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@serve.zone/platformclient',
|
||||
version: '1.1.3',
|
||||
version: '1.1.4',
|
||||
description: 'a module that makes it really easy to use the serve.zone platform inside your app'
|
||||
}
|
||||
|
||||
@@ -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