From 5bd12e4482a8ad0bb4d91867a0814abb378ac075 Mon Sep 17 00:00:00 2001 From: idevakk <219866223+idevakk@users.noreply.github.com> Date: Tue, 10 Mar 2026 00:19:43 +0530 Subject: [PATCH] fix: add try_files fallback in static asset location for Livewire JS route --- docker/nginx.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/nginx.conf b/docker/nginx.conf index a4c4ed2..1989727 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -58,8 +58,9 @@ server { fastcgi_hide_header X-Powered-By; } - # Cache static assets + # Cache static assets (with fallback to PHP for virtual routes like /livewire/livewire.js) location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ { + try_files $uri /index.php?$query_string; expires 30d; add_header Cache-Control "public, no-transform"; access_log off;