This commit is contained in:
F4ilji
2025-04-30 11:37:34 +05:00
parent ab0eb1d3ab
commit 1df3ad490c
7 changed files with 46 additions and 34 deletions
+7
View File
@@ -61,6 +61,13 @@ export const helpers = {
return process.env.APP_URL || '/'; // Используем env-переменную на сервере
}
return window.location.origin + '/';
},
GET_BASE_STORAGE_URL() {
if (typeof window === 'undefined') {
return process.env.APP_URL || '/storage/'; // Используем env-переменную на сервере
}
return window.location.origin + '/storage/';
}
}
};