Skip to content
This repository was archived by the owner on Oct 11, 2024. It is now read-only.

Commit a18b707

Browse files
committed
fix: remove mode
1 parent 598aa89 commit a18b707

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Router/Core.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ public static function run(?callable $callback = null)
326326
if (class_exists('Leaf\App')) {
327327
$config = array_merge($config, [
328328
'mode' => \Leaf\Config::get('mode'),
329-
'app.down' => \Leaf\Anchor::toBool(\Leaf\Config::get('app.down')),
330-
'debug' => \Leaf\Anchor::toBool(\Leaf\Config::get('debug')) ?? \Leaf\Config::get('mode') !== 'production',
329+
'app.down' => \Leaf\Anchor::toBool(\Leaf\Config::get('app.down')) ?? false,
330+
'debug' => \Leaf\Anchor::toBool(\Leaf\Config::get('debug')) ?? false,
331331
]);
332332
}
333333

0 commit comments

Comments
 (0)