From a2477072cdf5875eac49bf16a6c4e4071e4f60b5 Mon Sep 17 00:00:00 2001 From: linearcombination <4829djaskdfj@gmail.com> Date: Tue, 18 Jun 2024 13:21:20 -0700 Subject: [PATCH] Fix nginx trailing slash issue, attempt #2 Last attempt didn't work, did more research, trying another approach --- frontend/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 0648cc79..23638cca 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -8,7 +8,7 @@ server { server_name _; root /app/build/client; - location ~ .*$ { + location / { try_files $uri $uri/ @sveltekit; } @@ -20,7 +20,7 @@ server { proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Sendfile-Type X-Accel-Redirect; - proxy_pass http://sveltekit-server; + proxy_pass http://sveltekit-server/; proxy_redirect off; error_page 502 = @static;