Skip to content

Commit 271b8b2

Browse files
authored
Merge pull request #69 from devsapp/support-layer
fix: fcsdk support cn-heyuan-acdr-1
2 parents 6f1b828 + 6c7f137 commit 271b8b2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/resources/fc/impl/client.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,14 @@ export default class FC_Client {
9696
this.customEndpoint = options.endpoint;
9797
const { timeout, userAgent } = options || {};
9898

99-
const { host: endpoint = `${accountID}.${region}.fc.aliyuncs.com`, protocol = 'http' } =
99+
let { host: endpoint = `${accountID}.${region}.fc.aliyuncs.com`, protocol = 'http' } =
100100
getCustomEndpoint(options.endpoint);
101101

102+
// 河源地域,fc 走内网
103+
if (region === 'cn-heyuan-acdr-1') {
104+
endpoint = endpoint.replace('.fc.aliyuncs.com', '-internal.fc.aliyuncs.com')
105+
}
106+
102107
logger.debug(`endpoint=${endpoint}; protocol=${protocol}`);
103108

104109
const config = new Config({

0 commit comments

Comments
 (0)