Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure wp-gatsby using wp-config.php #220

Open
jooola opened this issue Mar 8, 2022 · 1 comment
Open

Configure wp-gatsby using wp-config.php #220

jooola opened this issue Mar 8, 2022 · 1 comment

Comments

@jooola
Copy link

jooola commented Mar 8, 2022

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).

@ijorgesilva
Copy link

I'm using Bedrock as well. Any help is appreciated.

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

No branches or pull requests

2 participants