Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix info api gateway invalid domain #126 #127

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading