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;