From a9e981baa01c96e1bd7ae143d5bcb818de23c56d Mon Sep 17 00:00:00 2001 From: Sirttas Date: Sun, 19 May 2024 19:09:04 +0200 Subject: [PATCH] prefix --- src/marbas/marbasService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/marbas/marbasService.ts b/src/marbas/marbasService.ts index 2f73b82..12a95bc 100644 --- a/src/marbas/marbasService.ts +++ b/src/marbas/marbasService.ts @@ -33,7 +33,7 @@ marbasAxiosInstance.interceptors.response.use(async r => { let results = r.data?.results; if (!next.startsWith(import.meta.env.VITE_MARBAS_URL)) { // FIME remove once the API is fixed - next = next.replace(/http(s)?:\/\/[^\/]+/g, ''); + next = import.meta.env.VITE_MARBAS_URL + next.replace(/http(s)?:\/\/[^/]+/g, ''); } if (next) { results = results.concat((await marbasAxiosInstance.request({