diff --git a/packages/realtime-compiler/src/Routing/PageRouter.php b/packages/realtime-compiler/src/Routing/PageRouter.php index 7ce3db5da99..9727b624787 100644 --- a/packages/realtime-compiler/src/Routing/PageRouter.php +++ b/packages/realtime-compiler/src/Routing/PageRouter.php @@ -28,7 +28,7 @@ public function __construct(Request $request) protected function handlePageRequest(): Response { - $html = $this->getHtml(Route::get($this->normalizePath($this->request->path))->getPage()); + $html = $this->getHtml(Route::getOrFail($this->normalizePath($this->request->path))->getPage()); return (new Response(200, 'OK', [ 'body' => $html,