fix: flux

This commit is contained in:
u00lipp
2025-10-31 14:28:24 +01:00
parent 1691426fe3
commit 7beddc803b
2 changed files with 5 additions and 4 deletions
-3
View File
@@ -63,9 +63,6 @@ RUN mkdir -p /var/log/nginx \
&& chmod -R 664 /var/log/nginx/error.log
# Build frontend assets
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
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";
}
location ~ ^/flux/flux(\.min)?\.(js|css)$ {
expires off;
try_files $uri $uri/ /index.php?$query_string;
}
# -------------------------------------------------
# Static assets with long caching
# -------------------------------------------------