diff --git a/public/index.php b/public/index.php index 5f32a35..df11eda 100644 --- a/public/index.php +++ b/public/index.php @@ -4,7 +4,7 @@ declare(strict_types=1); require_once __DIR__ . '/../vendor/autoload.php'; -loadEnv(__DIR__ . '/../.env'); +loadEnv(__DIR__ . '/../' . (getenv('APP_ENV') === 'local' ? '.env' : '.env_prod')); // Start session with secure cookie settings before any output or auth checks. session()->start();