From 8f19f8439fb44dde7101d0460b450df9fd9fade9 Mon Sep 17 00:00:00 2001 From: Jack Anderson Date: Wed, 30 Oct 2024 15:29:38 +0000 Subject: [PATCH] Add env config on bootstrap --- config/bootstrap.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/bootstrap.php b/config/bootstrap.php index 41b52b550..ffb73a1b4 100644 --- a/config/bootstrap.php +++ b/config/bootstrap.php @@ -44,7 +44,7 @@ if (is_array($env = @include dirname(__DIR__) . '/.env.local.php') && (!isset($e throw new RuntimeException('Please run "composer require symfony/dotenv" to load the ".env" files configuring the application.'); } else { // load all the .env files - (new Dotenv(false))->loadEnv(dirname(__DIR__) . '/.env'); + (new Dotenv('APP_ENV'))->loadEnv(dirname(__DIR__) . '/.env'); } $_SERVER += $_ENV;