From 69a26ecf55a634ee752e3c0e0d9e4ecaf326861e Mon Sep 17 00:00:00 2001 From: Alec Larson <1925840+aleclarson@users.noreply.github.com> Date: Tue, 5 Mar 2024 17:22:01 -0500 Subject: [PATCH] fix: strip leading / to avoid ky error --- templates/base/http-clients/ky-http-client.ejs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/base/http-clients/ky-http-client.ejs b/templates/base/http-clients/ky-http-client.ejs index 26fcabfa..490fc0ae 100644 --- a/templates/base/http-clients/ky-http-client.ejs +++ b/templates/base/http-clients/ky-http-client.ejs @@ -112,7 +112,7 @@ export class HttpClient { } } - const request = this.ky(path, { + const request = this.ky(path.replace(/^\//, ''), { ...options, headers, searchParams: query,