Configure wp-gatsby using wp-config.php
jooola opened this issue · comments
My WordPress backend is based on the https://github.com/roots/bedrock project layout. Most of the environment settings (prod/staging/dev) are defined using files and a .env file (a small abstraction on top of wp-config.php).
I am looking for a way to configure to wp-gatsby from the wp-config.php file so I can keep trigger urls and settings in a VCS and use different urls depending on the environment.
Is that currently possible ?
I think Wordpress handle this nicely by disabling a fields in the admin panel if this field is configured from the wp-config.php file (for example the WP_HOME and WP_SITEURL settings).
I'm using Bedrock as well. Any help is appreciated.