feat(cms): sync site assets, revalidate webhook, and document download naming
This commit is contained in:
@@ -36,6 +36,13 @@ return [
|
||||
'throw' => false,
|
||||
],
|
||||
|
||||
// Private files remain under storage/app and are served via controller responses.
|
||||
'private' => [
|
||||
'driver' => 'local',
|
||||
'root' => storage_path('app'),
|
||||
'throw' => false,
|
||||
],
|
||||
|
||||
'public' => [
|
||||
'driver' => 'local',
|
||||
'root' => storage_path('app/public'),
|
||||
|
||||
@@ -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'),
|
||||
],
|
||||
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user