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

@@ -31,4 +31,21 @@ return [
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
],
'nextjs' => [
'revalidate_url' => env('NEXTJS_REVALIDATE_URL'),
'revalidate_token' => env('NEXTJS_REVALIDATE_TOKEN'),
// Optional: sync assets into a local Next.js repo for static serving.
// Example: /Users/gbanyan/Project/usher-site/public
'public_path' => env('NEXTJS_PUBLIC_PATH'),
// Folder under public/ where Laravel uploads are copied (no leading/trailing slash).
'public_upload_prefix' => env('NEXTJS_PUBLIC_UPLOAD_PREFIX', 'uploads'),
// Optional: automatically git commit+push when public/ assets change.
// Requires the Next.js repo to be checked out and authenticated on this machine.
'autopush_assets' => env('NEXTJS_AUTOPUSH_ASSETS', false),
'repo_path' => env('NEXTJS_REPO_PATH'),
'repo_remote' => env('NEXTJS_REPO_REMOTE', 'origin'),
'repo_branch' => env('NEXTJS_REPO_BRANCH', 'main'),
'repo_assets_commit_message' => env('NEXTJS_REPO_ASSETS_COMMIT_MESSAGE', 'chore(assets): sync public assets'),
],
];