Skip to content

Commit 292751a

Browse files
committed
fix: support new region cn-wulanchabu
1 parent 809078d commit 292751a

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/impl/domain.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,8 @@ export class Domain {
397397
: path.join(this.inputs.baseDir || process.cwd(), syncFolderName);
398398
const logger = GLogger.getLogger();
399399
logger.debug(`sync base dir: ${baseDir}`);
400-
const domainNameResourceId = this.getDomainName().replace(/\./g, '_');
400+
const domainName = await this.getDomainName();
401+
const domainNameResourceId = domainName.replace(/\./g, '_');
401402
const ymlPath = path
402403
.join(baseDir, `${this.region}_${domainNameResourceId}.yaml`)
403404
.replace('$', '_');

src/impl/region.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ enum Region {
2020
'us-east-1' = 'us-east-1',
2121
'us-west-1' = 'us-west-1',
2222
'ap-south-1' = 'ap-south-1',
23+
'cn-heyuan-acdr-1' = 'cn-heyuan-acdr-1',
24+
'cn-wulanchabu' = 'cn-wulanchabu',
2325
}
2426

2527
export type IRegion = `${Region}`;

0 commit comments

Comments
 (0)