From 05cd7895b378e23f563fb67eebc618b406507173 Mon Sep 17 00:00:00 2001 From: Tyler Hillery Date: Fri, 21 Nov 2025 05:56:08 -0600 Subject: [PATCH] fix: ensure baseUrl has trailing / for proper URL creation --- src/catalog/IcebergRestCatalog.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/catalog/IcebergRestCatalog.ts b/src/catalog/IcebergRestCatalog.ts index 5ac4c95..6be3288 100644 --- a/src/catalog/IcebergRestCatalog.ts +++ b/src/catalog/IcebergRestCatalog.ts @@ -85,8 +85,10 @@ export class IcebergRestCatalog { prefix += `/${options.catalogName}` } + const baseUrl = options.baseUrl.endsWith('/') ? options.baseUrl : `${options.baseUrl}/` + this.client = createFetchClient({ - baseUrl: options.baseUrl, + baseUrl, auth: options.auth, fetchImpl: options.fetch, })