Fix for production

This commit is contained in:
mahmood
2026-09-10 22:37:29 +03:30
parent efb0051ab9
commit ec899defb9
95 changed files with 219589 additions and 110 deletions
+3 -1
View File
@@ -6,8 +6,10 @@ declare module 'axios' {
}
}
const apiBaseURL = import.meta.env.VITE_API_BASE_URL || '/api';
export const apiClient = axios.create({
baseURL: '/api',
baseURL: apiBaseURL,
headers: {
'Content-Type': 'application/json',
},
+9
View File
@@ -0,0 +1,9 @@
/// <reference types="vite/client" />
interface ImportMetaEnv {
readonly VITE_API_BASE_URL?: string;
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}