diff --git a/src/Router/Core.php b/src/Router/Core.php index e3bcd40..1464511 100644 --- a/src/Router/Core.php +++ b/src/Router/Core.php @@ -326,8 +326,8 @@ public static function run(?callable $callback = null) if (class_exists('Leaf\App')) { $config = array_merge($config, [ 'mode' => \Leaf\Config::get('mode'), - 'app.down' => \Leaf\Anchor::toBool(\Leaf\Config::get('app.down')), - 'debug' => \Leaf\Anchor::toBool(\Leaf\Config::get('debug')) ?? \Leaf\Config::get('mode') !== 'production', + 'app.down' => \Leaf\Anchor::toBool(\Leaf\Config::get('app.down')) ?? false, + 'debug' => \Leaf\Anchor::toBool(\Leaf\Config::get('debug')) ?? false, ]); }