Skip to content

Commit

Permalink
Exclude register themes when running from console (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmeijer97 authored Jan 5, 2024
1 parent ea846d9 commit dae72d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/RapidezServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,10 @@ protected function bootRoutes(): self

protected function registerThemes(): self
{
if(app()->runningInConsole()) {
return $this;
}

$path = config('rapidez.frontend.themes.' . request()->server('MAGE_RUN_CODE', request()->has('_store') && ! app()->isProduction() ? request()->get('_store') : 'default'), false);

if (! $path) {
Expand Down

0 comments on commit dae72d6

Please sign in to comment.