environemnt availability

This commit is contained in:
2025-07-06 23:50:48 +03:00
parent 4d7b5019d3
commit f3610a70d4
4 changed files with 23 additions and 15 deletions

View File

@@ -1,6 +1,10 @@
// Environment configuration
const getApiUrl = (): string => {
// Use environment variable if available, fallback to development URL
// In production (Vercel), use the proxied path
if (import.meta.env.PROD) {
return '/api';
}
// In development, use the direct URL
return import.meta.env.VITE_API_URL || 'http://141.196.166.241:8003';
};