Skip to content

Commit ae012c3

Browse files
use the property cdnUrl
1 parent 8185e3f commit ae012c3

File tree

1 file changed

+4
-2
lines changed
  • src/components/design-library-list

1 file changed

+4
-2
lines changed

src/components/design-library-list/util.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/* eslint-disable no-console */
22
import DEFAULT from './default.json'
3-
import { settings, isPro } from 'stackable'
3+
import {
4+
settings, isPro, cdnUrl,
5+
} from 'stackable'
46
import { parse, serialize } from '@wordpress/blocks'
57

68
const 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

204206
export const addPlaceholderForPostsBlock = ( content, postsPlaceholder, defaultValues ) => {
205207
const remainingPosts = [ ...postsPlaceholder ]

0 commit comments

Comments
 (0)