The file to modify for configuration options is
config/application.php. This is the file that contains what
wp-config.php usually would.
web/wp-config.php is required by WordPress and is only used to load the other main configs. Nothing else should be added to it.
Bedrock's base configuration options are production-standard safe settings and used in all environments except where specifically overridden. To override configuration settings based on environments:
Use an existing environment config in
config/environmentsor create a new one. Bedrock will
requireany file in the
config/environmentsdirectory with a filename matching the
WP_ENVenvironment variable. This environment variable can be set in a few ways:
Bedrock comes with
staging.phpconfigs included. If you create an additional environment, configure it with a matching PHP file in
true, so WordPress will display PHP errors in the browser when your
Config::define is a static method that overrides the application options (WP) with environment specific options where they are defined, defaulting to the application options set in