File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/components/design-library-list Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 11/* eslint-disable no-console */
22import DEFAULT from './default.json'
3- import { settings , isPro } from 'stackable'
3+ import {
4+ settings , isPro , cdnUrl ,
5+ } from 'stackable'
46import { parse , serialize } from '@wordpress/blocks'
57
68const DEFAULT_CONTENT = { ...DEFAULT }
@@ -199,7 +201,7 @@ export const parseDisabledBlocks = parsedBlock => {
199201 return { block, blocksForSubstitution }
200202}
201203
202- const IMAGE_STORAGE = 'https://stackable-files.pages.dev /library-v4/images/'
204+ const IMAGE_STORAGE = cdnUrl . replace ( / \/ $ / , '' ) + ' /library-v4/images/'
203205
204206export const addPlaceholderForPostsBlock = ( content , postsPlaceholder , defaultValues ) => {
205207 const remainingPosts = [ ...postsPlaceholder ]
You can’t perform that action at this time.
0 commit comments