From c1e7b3257d0893f00948b4ec4fa44599168eb692 Mon Sep 17 00:00:00 2001 From: nezort11 Date: Mon, 23 Dec 2024 00:02:02 +0300 Subject: [PATCH] fix: Fix info api gateway invalid domain --- src/info/info.ts | 2 +- src/provider/provider.ts | 1 + src/types/common.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) 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;