Skip to content

Conversation

@t-hamano
Copy link
Contributor

In #764, the local dev-env/themes directory is now mapped to the wp-content/themes directory to make it easier to create or check changes to themes.

This may be convenient, but in the initial setup, there are no themes, which causes the following problems:

  • The frontend is blank.
  • You'll get a warning that the TT5 theme is broken.
55c6c3481a08a9153af05bf7f7e6058e.mp4

The mappings field should be excluded from the default settings. Contributors who really need the mapping can do so by creating a .wp-env.override.json file like this:

{
	"mappings": {
		"wp-content/themes": "./dev-env/themes"
	}
}

@t-hamano t-hamano requested a review from pbking May 18, 2025 02:47
Copy link
Contributor

@pbking pbking left a comment

Choose a reason for hiding this comment

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

Fair point @t-hamano

@pbking pbking merged commit 7ff0254 into trunk May 29, 2025
2 checks passed
@pbking pbking deleted the remove-mappings-field branch May 29, 2025 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants