diff --git a/ghost/admin/app/components/admin-x/admin-x-component.js b/ghost/admin/app/components/admin-x/admin-x-component.js index 0be6116504..058a046c81 100644 --- a/ghost/admin/app/components/admin-x/admin-x-component.js +++ b/ghost/admin/app/components/admin-x/admin-x-component.js @@ -58,7 +58,12 @@ export const importComponent = async (packageName) => { } const baseUrl = (config.cdnUrl ? `${config.cdnUrl}assets/` : ghostPaths().assetRootWithHost); - const url = new URL(`${baseUrl}${relativePath}/${config[`${configKey}Filename`]}?v=${config[`${configKey}Hash`]}`); + let url = new URL(`${baseUrl}${relativePath}/${config[`${configKey}Filename`]}?v=${config[`${configKey}Hash`]}`); + + const customUrl = config[`${configKey}CustomUrl`]; + if (customUrl) { + url = new URL(customUrl); + } if (url.protocol === 'http:') { window[packageName] = await import(`http://${url.host}${url.pathname}${url.search}`);