fix: flux

This commit is contained in:
u00lipp committed 2025-10-31 14:28:24 +01:00
1 parent 1691426fe3
commit 7beddc803b
2 files changed
+4 -3

No files matched your search

-3
View File
@@ -63,9 +63,6 @@ RUN mkdir -p /var/log/nginx \
&& chmod -R 664 /var/log/nginx/error.log && chmod -R 664 /var/log/nginx/error.log
# Build frontend assets # Build frontend assets
RUN npm ci && npm run build RUN npm ci && npm run build
RUN mkdir -p public/flux \
&& cp -a vendor/livewire/flux/dist/flux.min.js public/flux/flux.js \
&& cp -a vendor/livewire/flux/dist/flux.css public/flux/flux.css
# Optimize Laravel configuration # Optimize Laravel configuration
RUN php artisan config:cache && php artisan route:cache && php artisan view:cache && php artisan event:cache RUN php artisan config:cache && php artisan route:cache && php artisan view:cache && php artisan event:cache
+4
View File
@@ -19,6 +19,10 @@ server {
add_header Cache-Control "no-store"; add_header Cache-Control "no-store";
} }
location ~ ^/flux/flux(\.min)?\.(js|css)$ {
expires off;
try_files $uri $uri/ /index.php?$query_string;
}
# ------------------------------------------------- # -------------------------------------------------
# Static assets with long caching # Static assets with long caching
# ------------------------------------------------- # -------------------------------------------------