Skip to content

Commit

Permalink
fix: remove mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mychidarko committed Oct 3, 2022
1 parent 598aa89 commit a18b707
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Router/Core.php
Expand Up @@ -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,
]);
}

Expand Down

0 comments on commit a18b707

Please sign in to comment.