Skip to content

Commit 9e06a12

Browse files
fix: updated cdn to cloudflare pages
1 parent 887566a commit 9e06a12

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
defined( 'STACKABLE_VERSION' ) || define( 'STACKABLE_VERSION', '3.18.0' );
2929
defined( 'STACKABLE_FILE' ) || define( 'STACKABLE_FILE', __FILE__ );
3030
defined( 'STACKABLE_I18N' ) || define( 'STACKABLE_I18N', 'stackable-ultimate-gutenberg-blocks' ); // Plugin slug.
31-
defined( 'STACKABLE_DESIGN_LIBRARY_URL' ) || define( 'STACKABLE_DESIGN_LIBRARY_URL', 'https://storage.googleapis.com/stackable-plugin-assets' ); // Design Library CDN URL
31+
defined( 'STACKABLE_DESIGN_LIBRARY_URL' ) || define( 'STACKABLE_DESIGN_LIBRARY_URL', 'https://stackable-files.pages.dev' ); // Design Library CDN URL
3232

3333
/********************************************************************************************
3434
* Activation & PHP version checks.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export const parseDisabledBlocks = parsedBlock => {
199199
return { block, blocksForSubstitution }
200200
}
201201

202-
const IMAGE_STORAGE = 'https://storage.googleapis.com/stackable-plugin-assets/library-v4/images/'
202+
const IMAGE_STORAGE = 'https://stackable-files.pages.dev/library-v4/images/'
203203

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

src/design-library/init.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,7 @@ public function get_design_library_from_cloud() {
252252
$designs = array();
253253
$content = null;
254254

255-
// Add ignoreCache to retrieve the updated file
256-
$response = wp_remote_get( self::get_cdn_url() . 'library-v4/library.json?ignoreCache=1' );
255+
$response = wp_remote_get( self::get_cdn_url() . 'library-v4/library.json' );
257256

258257
if ( is_wp_error( $response ) ) {
259258
// Add our error message so we can see it in the network tab.

0 commit comments

Comments
 (0)