fix: flux
This commit is contained in:
+1
-4
@@ -63,10 +63,7 @@ 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
|
||||
|
||||
|
||||
@@ -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
|
||||
# -------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user