From 85d013f31c359600fefb139fa598148a99e06772 Mon Sep 17 00:00:00 2001 From: linearcombination <4829djaskdfj@gmail.com> Date: Tue, 18 Jun 2024 10:38:50 -0700 Subject: [PATCH] Fix nginx adding trailing slash before request params See https://superuser.com/questions/1766950/how-to-remove-trailing-slash-before-url-parameters-in-nginx and https://nginx.org/en/docs/http/ngx_http_core_module.html#location --- frontend/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 32e93660..0648cc79 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; }