Skip to content

Commit 793dafd

Browse files
committed
fix assets hash mismatch for production build
1 parent 74b0f73 commit 793dafd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compose.prod.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ services:
1212
# The 'php-fpm' service mounts the same volume without ':ro' to allow write operations.
1313
# -----------------------------------------------------------
1414
- laravel-storage-production:/var/www/storage:ro
15+
- laravel-public-assets:/var/www/public/build:ro
1516
networks:
1617
- laravel-production
1718
ports:
@@ -33,6 +34,7 @@ services:
3334
target: production
3435
restart: unless-stopped
3536
volumes:
37+
- laravel-public-assets:/var/www/public/build # Mount built public assets to ensure the manifest.json and hashed files match between Nginx and PHP-FPM
3638
- laravel-storage-production:/var/www/storage # Mount the storage volume
3739
env_file:
3840
- .env
@@ -103,3 +105,4 @@ networks:
103105
volumes:
104106
postgres-data-production:
105107
laravel-storage-production:
108+
laravel-public-assets:

0 commit comments

Comments
 (0)