@prezly/theme-kit-core
Version:
Data layer and utility library for developing Prezly themes with JavaScript
14 lines (13 loc) • 406 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getCdnUrl = getCdnUrl;
var _constants = require("./constants.cjs");
/**
* @param uuid UUID of the assets hosted on Uploadcare
* @returns Full asset URL that can be used as a source for <img>, <video> and <a> tags.
*/
function getCdnUrl(uuid) {
return "".concat(_constants.ASSETS_CDN_URL, "/").concat(uuid, "/");
}