Fix nginx template to use correct path for third_party assets

- Changed alias from ${NIXPACKS_PHP_ROOT_DIR}/pancake/third_party to /app/pancake/third_party
- This fixes 404 errors for JS/CSS files with query strings
- NIXPACKS_PHP_ROOT_DIR variable not being set properly in containers
- Static assets now serve correctly from all containers
This commit is contained in:
Tim Bendt
2025-11-29 18:05:58 -05:00
parent 88cf1003a8
commit 73e80f6533

View File

@@ -82,7 +82,7 @@ http {
# Static assets for pancake/third_party # Static assets for pancake/third_party
location /pancake/third_party { location /pancake/third_party {
alias ${NIXPACKS_PHP_ROOT_DIR}/pancake/third_party; alias /app/pancake/third_party;
expires 1y; expires 1y;
add_header Cache-Control "public, immutable"; add_header Cache-Control "public, immutable";