Skip to content

Commit

Permalink
fix: ensure the config storage link for prod env
Browse files Browse the repository at this point in the history
  • Loading branch information
tanhongit committed Nov 16, 2024
1 parent 924780d commit ea547bd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions config/filesystems.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@
*/

'links' => [
public_path('storage') => env('FILESYSTEM_FILE_ROOT', storage_path('app/public')),
public_path('storage') => env('APP_ENV') === 'production'
? env('FILESYSTEM_FILE_ROOT', storage_path('app/public'))
: storage_path('app/public'),
],

];

0 comments on commit ea547bd

Please sign in to comment.