Skip to content

Commit

Permalink
fix: support new region cn-wulanchabu
Browse files Browse the repository at this point in the history
  • Loading branch information
rsonghuster committed Aug 7, 2024
1 parent 809078d commit 292751a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/impl/domain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,8 @@ export class Domain {
: path.join(this.inputs.baseDir || process.cwd(), syncFolderName);
const logger = GLogger.getLogger();
logger.debug(`sync base dir: ${baseDir}`);
const domainNameResourceId = this.getDomainName().replace(/\./g, '_');
const domainName = await this.getDomainName();
const domainNameResourceId = domainName.replace(/\./g, '_');
const ymlPath = path
.join(baseDir, `${this.region}_${domainNameResourceId}.yaml`)
.replace('$', '_');
Expand Down
2 changes: 2 additions & 0 deletions src/impl/region.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ enum Region {
'us-east-1' = 'us-east-1',
'us-west-1' = 'us-west-1',
'ap-south-1' = 'ap-south-1',
'cn-heyuan-acdr-1' = 'cn-heyuan-acdr-1',
'cn-wulanchabu' = 'cn-wulanchabu',
}

export type IRegion = `${Region}`;
Expand Down

0 comments on commit 292751a

Please sign in to comment.