Ubuntu 22.04
LocalWP 8.3.1+6650
Nginx
PHP 8.1.23
MySQL 8.0.16
On a cleanly installed LocalWP, I installed Wordpress Wersion 6.4.3 from it, which is the default, after which I installed themes and necessary plugins. The first plugin with which the problem arose is Yoast SEO, by default it is deactivated in LocalWP, the rationale for the error does not work in the test environment. This problem occurs because every time the environment (*.domain.name) is started, the entry define( ‘WP_ENVIRONMENT_TYPE’, ‘local’ ) appears in the wp-config.php file; removed the entry as follows in the directory of the activated theme in the functions.php file, added the following line add_filter( ‘Yoast\WP\SEO\should_index_indexables’, ‘__return_true’ ); search engine optimization was turned on and Yoast SEO started indexing the pages, but there were errors with the indexing of the sitemap, I have not yet dealt with this problem. Because there are no errors in the debugger about the .loc error. So, the question is how to disable the automatic addition of an entry to the configuration file (‘WP_ENVIRONMENT_TYPE’, ‘local’) in the desired environment; and in another environment you can leave it.
it would not be bad to add an independent choice in the next versions, whether the author wants such records to be automatically generated in the configuration files or not, a toggle like SSL certificates, would be very cool.
Also, by default, when LocalWP starts a session, it generates domain records in the /etc/hosts file, and when it ends the session, it does not delete these records, I am not talking about all of them, but in my case it creates difficulties, if I create a site for a client, I immediately create a domain locally 1 in 1 with the client and so that in the future there will be no errors with plugins, themes and other settings. Next, I give access to the local server and when everything is in order, I transfer it to the network. On the open server, this function works by default, which is very useful, since even after disabling LocalWP, I cannot access domains in the global network until I delete the generated local hosts.
I also have another question about entries in the nginx configuration file, but I will write this question tomorrow, I will formulate it more correctly.
Overall, your product is the best of all! And I checked them, probably all of them that just now exist. A couple of small additions to the functionality will be make your app better in the world