feat(cms): sync site assets, revalidate webhook, and document download naming
This commit is contained in:
22
app/Console/Commands/NextjsPushAssets.php
Normal file
22
app/Console/Commands/NextjsPushAssets.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Console\Commands;
|
||||
|
||||
use App\Services\NextjsRepoSyncService;
|
||||
use Illuminate\Console\Command;
|
||||
|
||||
class NextjsPushAssets extends Command
|
||||
{
|
||||
protected $signature = 'nextjs:push-assets';
|
||||
|
||||
protected $description = 'Stage/commit/push Next.js public asset changes (public/uploads and public/images)';
|
||||
|
||||
public function handle(): int
|
||||
{
|
||||
NextjsRepoSyncService::pushPublicAssets();
|
||||
$this->info('Done (best-effort). Check logs if nothing happened.');
|
||||
|
||||
return self::SUCCESS;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user