diff --git a/src/info/info.ts b/src/info/info.ts index 414525d..1579abc 100644 --- a/src/info/info.ts +++ b/src/info/info.ts @@ -101,7 +101,7 @@ export class YandexCloudInfo implements ServerlessPlugin { if (existingApiGateway?.id) { log.notice( - `API Gateway "${existingApiGateway.name}" deployed with url "https://${existingApiGateway.id}.apigw.yandexcloud.net/"`, + `API Gateway "${existingApiGateway.name}" deployed with url "https://${existingApiGateway.domain}/"`, ); } else { log.warning(`API Gateway "${existingApiGateway.name}" not deployed`); diff --git a/src/provider/provider.ts b/src/provider/provider.ts index 1be54e3..d2ba476 100644 --- a/src/provider/provider.ts +++ b/src/provider/provider.ts @@ -535,6 +535,7 @@ export class YandexCloudProvider implements ServerlessPlugin { return { name: apiGateway.name, id: apiGateway.id, + domain: apiGateway.domain, domains: apiGateway.attachedDomains, openapiSpec: specResponse.openapiSpec, }; diff --git a/src/types/common.ts b/src/types/common.ts index b11b273..403f046 100644 --- a/src/types/common.ts +++ b/src/types/common.ts @@ -325,6 +325,7 @@ export interface AttachedDomain { export interface ApiGatewayInfo { id?: string; + domain?: string; name: string; domains?: AttachedDomain[]; openapiSpec?: string;