diff --git a/src/editor/constant.js b/src/editor/constant.js index 1716ecf..8553f57 100644 --- a/src/editor/constant.js +++ b/src/editor/constant.js @@ -11,7 +11,8 @@ export const PLAYGROUND_BUILDER_BASE = "https://href.li/?https://playground.word /** * Playground blueprint schema url */ -export const PLAYGROUND_BLUEPRINT_SCHEMA_URL = "https://raw.githubusercontent.com/WordPress/wordpress-playground/refs/heads/trunk/packages/playground/blueprints/public/blueprint-schema.json"; +export const PLAYGROUND_BLUEPRINT_SCHEMA_URL = "https://playground.wordpress.net/blueprint-schema.json"; +export const PLAYGROUND_BLUEPRINT_SCHEMA_URL_FETCH = "https://raw.githubusercontent.com/WordPress/wordpress-playground/refs/heads/trunk/packages/playground/blueprints/public/blueprint-schema.json"; /** * PHP versions. diff --git a/src/editor/utils.js b/src/editor/utils.js index 8f98f2f..94d9d71 100644 --- a/src/editor/utils.js +++ b/src/editor/utils.js @@ -4,7 +4,7 @@ import { __ } from '@wordpress/i18n'; import { createBlock } from "@wordpress/blocks"; import { dispatch, useSelect, useDispatch } from '@wordpress/data'; -import { PLAYGROUND_BLUEPRINT_SCHEMA_URL } from './constant'; +import { PLAYGROUND_BLUEPRINT_SCHEMA_URL, PLAYGROUND_BLUEPRINT_SCHEMA_URL_FETCH } from './constant'; import { useCallback } from '@wordpress/element'; /** @@ -88,7 +88,7 @@ const updateDeprecatedFields = (jsonData) => { */ const validateAgainstSchema = async (data, createNotice) => { try { - const response = await fetch(PLAYGROUND_BLUEPRINT_SCHEMA_URL); + const response = await fetch(PLAYGROUND_BLUEPRINT_SCHEMA_URL_FETCH); if (!response.ok) { throw new Error('Failed to fetch schema.'); }