From 082a32faa0f8668d1ed60dd8a89375cfab7ff4cd Mon Sep 17 00:00:00 2001 From: Philipinho <16838612+Philipinho@users.noreply.github.com> Date: Sat, 18 Apr 2026 18:51:49 +0100 Subject: [PATCH] fix(client): exempt base csv export from response interceptor unwrap --- apps/client/src/lib/api-client.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/client/src/lib/api-client.ts b/apps/client/src/lib/api-client.ts index 17f7e102..d2d3bb96 100644 --- a/apps/client/src/lib/api-client.ts +++ b/apps/client/src/lib/api-client.ts @@ -10,7 +10,11 @@ const api: AxiosInstance = axios.create({ api.interceptors.response.use( (response) => { // we need the response headers for these endpoints - const exemptEndpoints = ["/api/pages/export", "/api/spaces/export"]; + const exemptEndpoints = [ + "/api/pages/export", + "/api/spaces/export", + "/api/bases/export-csv", + ]; if (response.request.responseURL) { const path = new URL(response.request.responseURL)?.pathname; if (path && exemptEndpoints.includes(path)) {