feat(cms): sync site assets, revalidate webhook, and document download naming

This commit is contained in:
2026-02-10 23:38:31 +08:00
parent c4969cd4d2
commit b6e18a83ec
27 changed files with 1019 additions and 26 deletions

View 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;
}
}