{
	"$schema": "https://playground.wordpress.net/blueprint-schema.json",
	"landingPage": "/cdn-error-demo-not-found/",
	"meta": {
		"title": "CDN Error Mockups Demo",
		"author": "hiroshisatoy",
		"description": "Installs CDN Error Mockups, replaces the block theme 404 template with the plugin block, and opens a missing URL.",
		"categories": [
			"Demo",
			"Blocks"
		]
	},
	"preferredVersions": {
		"php": "8.3",
		"wp": "latest"
	},
	"features": {
		"networking": true
	},
	"steps": [
		{
			"step": "installPlugin",
			"pluginData": {
				"resource": "bundled",
				"path": "/cdn-error-mockups.zip"
			},
			"options": {
				"activate": true,
				"targetFolderName": "cdn-error-mockups"
			},
			"ifAlreadyInstalled": "overwrite",
			"progress": {
				"weight": 2,
				"caption": "Installing CDN Error Mockups"
			}
		},
		{
			"step": "installTheme",
			"themeData": {
				"resource": "wordpress.org/themes",
				"slug": "twentytwentyfive"
			},
			"options": {
				"activate": true
			},
			"ifAlreadyInstalled": "overwrite",
			"progress": {
				"weight": 1,
				"caption": "Activating a block theme"
			}
		},
		{
			"step": "writeFile",
			"path": "/wordpress/create-cdn-error-404-template.php",
			"data": {
				"resource": "bundled",
				"path": "/playground/create-404-template.php"
			}
		},
		{
			"step": "runPHP",
			"code": "<?php require '/wordpress/wp-load.php'; require '/wordpress/create-cdn-error-404-template.php';",
			"progress": {
				"weight": 1,
				"caption": "Replacing the 404 template"
			}
		},
		{
			"step": "rm",
			"path": "/wordpress/create-cdn-error-404-template.php"
		},
		{
			"step": "login"
		}
	]
}
