Skip to content

Commit

Permalink
Merge pull request #127 from nezort11/fix/apigateway-invalid-domain
Browse files Browse the repository at this point in the history
fix: Fix info api gateway invalid domain #126
  • Loading branch information
DavyJohnes authored Dec 23, 2024
2 parents 868dc85 + c1e7b32 commit 58bdb0f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/info/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand Down
1 change: 1 addition & 0 deletions src/provider/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
1 change: 1 addition & 0 deletions src/types/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ export interface AttachedDomain {

export interface ApiGatewayInfo {
id?: string;
domain?: string;
name: string;
domains?: AttachedDomain[];
openapiSpec?: string;
Expand Down

0 comments on commit 58bdb0f

Please sign in to comment.