forked from Rathore-Rajpal/Superbot-Demo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
24 lines (19 loc) · 702 Bytes
/
config.js
File metadata and controls
24 lines (19 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Configuration for API endpoints
// Always use Render backend for consistent operation
const config = {
// Development - Use Render backend for consistency
development: {
API_URL: 'https://superbot-animated-ui.onrender.com/api'
},
// Production - Your Render backend URL
production: {
API_URL: 'https://superbot-animated-ui.onrender.com/api'
}
};
// Get current environment
const env = import.meta.env.MODE || 'development';
// Export the appropriate configuration
export const API_BASE = import.meta.env.VITE_API_URL || config[env].API_URL;
// Log the API URL being used (for debugging)
console.log('🌐 Using API URL:', API_BASE);
console.log('🔧 Environment:', env);