prefix
This commit is contained in:
1 parent
8fdcc75826
commit
a9e981baa0
1 file changed
+1
-1
@@ -33,7 +33,7 @@ marbasAxiosInstance.interceptors.response.use(async r => {
|
|||||||
let results = r.data?.results;
|
let results = r.data?.results;
|
||||||
|
|
||||||
if (!next.startsWith(import.meta.env.VITE_MARBAS_URL)) { // FIME remove once the API is fixed
|
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) {
|
if (next) {
|
||||||
results = results.concat((await marbasAxiosInstance.request({
|
results = results.concat((await marbasAxiosInstance.request({
|
||||||
|
|||||||
Reference in new issue
Block a user