Skip to content

Commit

Permalink
Fix nginx trailing slash issue (with redirect)
Browse files Browse the repository at this point in the history
  • Loading branch information
linearcombination committed Jun 18, 2024
1 parent d06f6a3 commit 4c48af8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ server {
root /app/build/client;

location / {
try_files $uri $uri/ @sveltekit;
$uri $uri/ @sveltekit;
}

location @sveltekit {
Expand All @@ -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;
Expand Down

0 comments on commit 4c48af8

Please sign in to comment.