diff --git a/src/AcornFseHelperServiceProvider.php b/src/AcornFseHelperServiceProvider.php index 759ab7f..5522325 100755 --- a/src/AcornFseHelperServiceProvider.php +++ b/src/AcornFseHelperServiceProvider.php @@ -14,7 +14,7 @@ class AcornFseHelperServiceProvider extends ServiceProvider */ public function boot() { - if ($this->app->runningInConsole() && ! $this->app->isProduction()) { + if ($this->app->runningInConsole()) { $this->loadViewsFrom(__DIR__.'/../resources/views', 'acorn-fse-helper'); $this->commands([ diff --git a/src/Console/Commands/FseInitCommand.php b/src/Console/Commands/FseInitCommand.php index 0cd43d9..aff7196 100644 --- a/src/Console/Commands/FseInitCommand.php +++ b/src/Console/Commands/FseInitCommand.php @@ -52,6 +52,13 @@ public function handle(): void return; } + if ( + $this->getLaravel()->isProduction() && + ! confirm('You are currently in Production. Do you still wish to continue?', default: false) + ) { + return; + } + $this->components->info('Initializing full-site editing support in the active theme.'); $this->task('Enabling theme support for block templates', $this->handleSupport());