Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/env/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Bug Fixes

- Playground runtime now supports zip archive themes, matching Docker runtime behavior. ([#75140](https://github.com/WordPress/gutenberg/issues/75140)).
- Add MySQL healthcheck to prevent race condition where WordPress containers start before MySQL is fully initialized. Uses MariaDB's official `healthcheck.sh` script with `MARIADB_AUTO_UPGRADE` to support both new and existing installations.

### Breaking Changes
Expand Down
20 changes: 6 additions & 14 deletions packages/env/lib/runtime/playground/blueprint-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,21 +107,13 @@ function getMountArgs( config ) {
}

// Mount themes
// All theme types (local, git, zip) can be mounted after downloading/extraction
for ( const theme of envConfig.themeSources || [] ) {
if ( theme.type === 'local' || theme.type === 'git' ) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was just unnecessary.

args.push(
'--mount-dir',
theme.path,
`/wordpress/wp-content/themes/${ theme.basename }`
);
} else {
throw new Error(
`Theme source "${ theme.basename || theme.path }" of type "${
theme.type
}" ` +
`is not supported with Playground runtime. Only local and git themes are supported.`
);
}
args.push(
'--mount-dir',
theme.path,
`/wordpress/wp-content/themes/${ theme.basename }`
);
}

// Mount custom mappings
Expand Down
Loading