ref(env) ajoute les variables d'environnement pour la clé REST WC à l'environnement staging
This commit is contained in:
parent
73c376dad4
commit
f7916cf70b
1 changed files with 3 additions and 9 deletions
|
|
@ -6,14 +6,8 @@
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
use Roots\WPConfig\Config;
|
use Roots\WPConfig\Config;
|
||||||
|
use function Env\env;
|
||||||
/**
|
|
||||||
* You should try to keep staging as close to production as possible. However,
|
|
||||||
* should you need to, you can always override production configuration values
|
|
||||||
* with `Config::define`.
|
|
||||||
*
|
|
||||||
* Example: `Config::define('WP_DEBUG', true);`
|
|
||||||
* Example: `Config::define('DISALLOW_FILE_MODS', false);`
|
|
||||||
*/
|
|
||||||
|
|
||||||
Config::define("DISALLOW_INDEXING", true);
|
Config::define("DISALLOW_INDEXING", true);
|
||||||
|
Config::define("WOOCOMMERCE_API_CONSUMER_KEY", env("WOOCOMMERCE_API_CONSUMER_KEY"));
|
||||||
|
Config::define("WOOCOMMERCE_API_CONSUMER_SECRET", env("WOOCOMMERCE_API_CONSUMER_SECRET"));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue