* Handle cloud urls from kibana.yml * Add types to utils params * Update utils * address nits Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
15 lines
429 B
TypeScript
15 lines
429 B
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
export function getFullCloudUrl(baseUrl: string | undefined, dirPath: string | undefined) {
|
|
if (baseUrl && dirPath) {
|
|
return `${baseUrl}${dirPath}`;
|
|
}
|
|
|
|
return '';
|
|
}
|