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

@wordpress/env: Add Support for Environment Variables in wp-config.php #32515

Open
dorzgi opened this issue Jun 8, 2021 · 2 comments
Open

@wordpress/env: Add Support for Environment Variables in wp-config.php #32515

dorzgi opened this issue Jun 8, 2021 · 2 comments
Labels
[Package] Env /packages/env [Type] Enhancement A suggestion for improvement.

Comments

@dorzgi
Copy link

dorzgi commented Jun 8, 2021

Hello,
We know we can add custom constants to wp-config.php using .wp-env.json, however we would like to be able to change the value using environment variables.

For example,
If we define the constant BASE_API_URI we would like the ability to have the value of the constant be populated with an environment variable we will pass.

Thanks!

@reageek
Copy link

reageek commented Jun 8, 2021

Look into roots bedrock. It has a means to do this.

@Mamaduka Mamaduka added the [Package] Env /packages/env label Jun 9, 2021
@lflorent
Copy link

I'm agree with @reageek.

A mecanism like dotenv would be great to populate some config constants.

@jordesign jordesign added the [Type] Enhancement A suggestion for improvement. label Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Package] Env /packages/env [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

5 participants