|
@@ -1,7 +1,8 @@
|
|
|
import i18n from "../i18n";
|
|
import i18n from "../i18n";
|
|
|
|
|
|
|
|
export const API_BASE_URL = import.meta.env.VITE_API_URL || 'http://localhost:8000';
|
|
export const API_BASE_URL = import.meta.env.VITE_API_URL || 'http://localhost:8000';
|
|
|
-export const RESOURCES_BASE_URL = API_BASE_URL.replace(/\/api$/, '');
|
|
|
|
|
|
|
+export const RESOURCES_BASE_URL = API_BASE_URL.replace(/\/api\/?$/, '');
|
|
|
|
|
+console.log("DEBUG: Resources will be loaded from:", RESOURCES_BASE_URL);
|
|
|
|
|
|
|
|
const getErrorMessage = async (response: Response, defaultMsg: string) => {
|
|
const getErrorMessage = async (response: Response, defaultMsg: string) => {
|
|
|
try {
|
|
try {
|