Skip to content

Conversation

@justlevine
Copy link
Contributor

@justlevine justlevine commented Nov 7, 2025

What?

This PR makes some QoL improvements to the plugins .wp-env.json

Why?

DX and ergonomics

How?

  1. Sets WP_ENVIRONMENT_TYPE to "development" for the development env.
  2. Enables WP_DEBUG and maps the log file to tests/_output/debug.log in development.
    3.Turns off debugging in the tests container. (Punted)
  3. Sets pretty permalinks when the environment starts (a prerequisite for REST).

Testing Instructions

  1. npm run wp-env destroy && npm run wp-env start

Testing Instructions for Keyboard

Screenshots or screencast

Before After

Test using WordPress Playground

The changes in this pull request can be previewed and tested using this WordPress Playground instance:

Click here to test this pull request.

@github-actions
Copy link

github-actions bot commented Nov 7, 2025

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: justlevine <[email protected]>
Co-authored-by: dkotter <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@justlevine
Copy link
Contributor Author

Restored WP_DEBUG to the tests environment since it's being used in the tests for some reason. Will create a followup PR that replaces usage with an option or similar.

@dkotter dkotter merged commit dc6084b into trunk Nov 10, 2025
24 checks passed
@dkotter dkotter deleted the chore/wp-env-config branch November 10, 2025 22:34
@github-project-automation github-project-automation bot moved this from Needs review to Done in WordPress AI Planning & Roadmap Nov 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

4 participants