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