Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
// API Configuration | |
const API_CONFIG = { | |
// Use the current origin in production (Hugging Face Spaces) | |
// Fallback to localhost in development | |
BASE_URL: | |
process.env.REACT_APP_NODE_ENV === "production" | |
? window.location.origin | |
: "http://localhost:3001", | |
}; | |
export default API_CONFIG; | |