forked from BLC/AyposWeb
environment variables fixed
This commit is contained in:
9
src/config/env.ts
Normal file
9
src/config/env.ts
Normal 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;
|
||||
Reference in New Issue
Block a user