0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Removed libs/ from Admin-X-Settings file path

refs https://github.com/TryGhost/DevOps/issues/80

- this makes the URL a little cleaner by removing a superfluous folder
This commit is contained in:
Daniel Lockyer 2023-09-19 13:13:50 +02:00 committed by Daniel Lockyer
parent 723afd9fe1
commit 5e466a90be
2 changed files with 3 additions and 3 deletions

View file

@ -201,8 +201,8 @@ export const importSettings = async () => {
return window['@tryghost/admin-x-settings'];
}
const baseUrl = (config.cdnUrl || ghostPaths().assetRootWithHost);
const url = new URL(`${baseUrl}libs/admin-x-settings/admin-x-settings.js`);
const baseUrl = (config.cdnUrl ? `${config.cdnUrl}assets/` : ghostPaths().assetRootWithHost);
const url = new URL(`${baseUrl}admin-x-settings/admin-x-settings.js`);
if (url.protocol === 'http:') {
window['@tryghost/admin-x-settings'] = await import(`http://${url.host}${url.pathname}`);

View file

@ -46,7 +46,7 @@ module.exports = {
// copy the @tryghost/admin-x-settings assets
const adminXSettingsPath = '../../apps/admin-x-settings/dist';
const assetsAdminXPath = `${assetsOut}/assets/libs/admin-x-settings`;
const assetsAdminXPath = `${assetsOut}/assets/admin-x-settings`;
if (fs.existsSync(adminXSettingsPath)) {
if (this.env === 'production') {