From a986da8aa8b79d6615bda093cd8ae4e3c4853eed Mon Sep 17 00:00:00 2001 From: Naz Date: Fri, 22 Oct 2021 15:59:10 +0400 Subject: [PATCH] Added images and media prefixes refs https://linear.app/tryghost/issue/CORE-121/create-a-video-storage-adapter - These paths are a bit painful to discover in URL utils and don't really have to live there. They should be used instead of the onse in @tryghost/url-utils - the STATIC_IMAGES_URL_PREFIX comes form https://github.com/TryGhost/SDK/blob/ef9ab5bd9e36b478a667e5da01b03198d2379aa3/packages/url-utils/lib/index.js#L37 - the STATIC_MEDIA_URL_PREFIX is a new concept introduced for experimental "video" file support --- ghost/constants/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ghost/constants/index.js b/ghost/constants/index.js index 28a5912180..8b46ae7369 100644 --- a/ghost/constants/index.js +++ b/ghost/constants/index.js @@ -10,5 +10,7 @@ module.exports = { ONE_WEEK_MS: 604800000, ONE_MONTH_MS: 2628000000, SIX_MONTH_MS: 15768000000, - ONE_YEAR_MS: 31536000000 + ONE_YEAR_MS: 31536000000, + STATIC_IMAGES_URL_PREFIX: 'content/images', + STATIC_MEDIA_URL_PREFIX: 'content/media' };