From 9a81068e0652c07f3630979259a8856dd9b87444 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A3=9E=E6=89=AC?= <3280204+ycrao@users.noreply.github.com> Date: Sat, 27 Dec 2025 17:41:53 +0800 Subject: [PATCH] Update index_root configuration access in RouteCommand --- flight/commands/RouteCommand.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/flight/commands/RouteCommand.php b/flight/commands/RouteCommand.php index bbcf52e..1b2691d 100644 --- a/flight/commands/RouteCommand.php +++ b/flight/commands/RouteCommand.php @@ -41,7 +41,8 @@ class RouteCommand extends AbstractBaseCommand { $io = $this->app()->io(); - if (isset($this->config['index_root']) === false) { + + if (isset($this->config['runway']['index_root']) === false) { $io->error('index_root not set in .runway-config.json', true); return; } @@ -50,7 +51,7 @@ class RouteCommand extends AbstractBaseCommand $cwd = getcwd(); - $index_root = $cwd . '/' . $this->config['index_root']; + $index_root = $cwd . '/' . $this->config['runway']['index_root']; // This makes it so the framework doesn't actually execute Flight::map('start', function () {