diff --git a/mailwolt-installer/scripts/70-nginx.sh b/mailwolt-installer/scripts/70-nginx.sh index f54861b..822f1fd 100644 --- a/mailwolt-installer/scripts/70-nginx.sh +++ b/mailwolt-installer/scripts/70-nginx.sh @@ -343,10 +343,17 @@ CONF if [[ "${DEV_MODE}" = "1" ]]; then cat >> "$outfile" <<'CONF' - # DEV: Vite-Proxy - location ^~ /@vite/ { proxy_pass http://127.0.0.1:5173/@vite/; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto https; } - location ^~ /node_modules/ { proxy_pass http://127.0.0.1:5173/node_modules/; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto https; } - location ^~ /resources/ { proxy_pass http://127.0.0.1:5173/resources/; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto https; } + # DEV: Vite-Proxy (npm run dev) + location = /vite-hmr { + proxy_pass http://127.0.0.1:5173/vite-hmr; + proxy_http_version 1.1; + proxy_set_header Upgrade $http_upgrade; + proxy_set_header Connection "Upgrade"; + proxy_set_header Host $host; + } + location ^~ /@vite/ { proxy_pass http://127.0.0.1:5173/@vite/; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto https; } + location ^~ /node_modules/ { proxy_pass http://127.0.0.1:5173/node_modules/; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto https; } + location ^~ /resources/ { proxy_pass http://127.0.0.1:5173/resources/; proxy_http_version 1.1; proxy_set_header Host $host; proxy_set_header X-Forwarded-Proto https; } CONF fi diff --git a/resources/views/livewire/ui/nx/domain/domain-list.blade.php b/resources/views/livewire/ui/nx/domain/domain-list.blade.php index 362e839..8c70da2 100644 --- a/resources/views/livewire/ui/nx/domain/domain-list.blade.php +++ b/resources/views/livewire/ui/nx/domain/domain-list.blade.php @@ -88,7 +88,7 @@ $_wmUrl = ($_wmSub && $_wmBase)