environment variables fixed

This commit is contained in:
2025-07-04 14:24:35 +03:00
parent 9f87ea5995
commit 4d7b5019d3
13 changed files with 136 additions and 20 deletions

9
src/config/env.ts Normal file
View File

@@ -0,0 +1,9 @@
// Environment configuration
const getApiUrl = (): string => {
// Use environment variable if available, fallback to development URL
return import.meta.env.VITE_API_URL || 'http://141.196.166.241:8003';
};
export const config = {
apiUrl: getApiUrl(),
} as const;