6 lines
239 B
JavaScript
6 lines
239 B
JavaScript
|
export const getResolvedHostname = (resolvedRegion, { regionHostname, partitionHostname }) => regionHostname
|
||
|
? regionHostname
|
||
|
: partitionHostname
|
||
|
? partitionHostname.replace("{region}", resolvedRegion)
|
||
|
: undefined;
|