From 2c8250ea136481c1126a02d3dddb3bfd5a417a2b Mon Sep 17 00:00:00 2001 From: Jade Geels Date: Thu, 2 May 2024 14:55:17 +0200 Subject: [PATCH] Only push head when not running in console --- src/RapidezStatamicServiceProvider.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/RapidezStatamicServiceProvider.php b/src/RapidezStatamicServiceProvider.php index c12d158..00ec119 100644 --- a/src/RapidezStatamicServiceProvider.php +++ b/src/RapidezStatamicServiceProvider.php @@ -207,7 +207,9 @@ public function bootUtilities() : static public function bootStack() : static { - View::startPush('head', view('rapidez-statamic::stack.head')); + if (! $this->app->runningInConsole()) { + View::startPush('head', view('rapidez-statamic::stack.head')); + } return $this; }