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,32 @@
<?php
namespace App\Jobs;
use App\Services\NextjsRepoSyncService;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldBeUnique;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
class PushNextjsPublicAssetsJob implements ShouldQueue, ShouldBeUnique
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
/**
* Collapse bursts of uploads into a single push.
*/
public int $uniqueFor = 60;
public function uniqueId(): string
{
return 'nextjs-public-assets-push';
}
public function handle(): void
{
NextjsRepoSyncService::pushPublicAssets();
}
}