Skip to content

Commit 58bdb0f

Browse files
authored
Merge pull request #127 from nezort11/fix/apigateway-invalid-domain
fix: Fix info api gateway invalid domain #126
2 parents 868dc85 + c1e7b32 commit 58bdb0f

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/info/info.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export class YandexCloudInfo implements ServerlessPlugin {
101101

102102
if (existingApiGateway?.id) {
103103
log.notice(
104-
`API Gateway "${existingApiGateway.name}" deployed with url "https://${existingApiGateway.id}.apigw.yandexcloud.net/"`,
104+
`API Gateway "${existingApiGateway.name}" deployed with url "https://${existingApiGateway.domain}/"`,
105105
);
106106
} else {
107107
log.warning(`API Gateway "${existingApiGateway.name}" not deployed`);

src/provider/provider.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,7 @@ export class YandexCloudProvider implements ServerlessPlugin {
535535
return {
536536
name: apiGateway.name,
537537
id: apiGateway.id,
538+
domain: apiGateway.domain,
538539
domains: apiGateway.attachedDomains,
539540
openapiSpec: specResponse.openapiSpec,
540541
};

src/types/common.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ export interface AttachedDomain {
325325

326326
export interface ApiGatewayInfo {
327327
id?: string;
328+
domain?: string;
328329
name: string;
329330
domains?: AttachedDomain[];
330331
openapiSpec?: string;

0 commit comments

Comments
 (0)