farmcontrol-ui/src/config.js
Tom Butcher 0a5563b2a7
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
Add WebAppSwitcher component and related icons; update config for web app URLs
2026-06-21 16:57:33 +01:00

23 lines
683 B
JavaScript

const config = {
development: {
backendUrl: 'https://dev.tombutcher.work/api',
webAppUrl: 'https://dev.tombutcher.work',
printServerUrl: 'ws://192.168.68.53:8081',
apiServerUrl: 'https://dev-wss.tombutcher.work',
logLevel: 'trace'
},
production: {
backendUrl: 'https://api.farmcontrol.app',
webAppUrl: 'https://web.farmcontrol.app',
printServerUrl: 'ws://192.168.68.53:8081',
apiServerUrl: 'https://ws.farmcontrol.app',
logLevel: 'error'
}
}
// Get the current environment, defaulting to development
const env = import.meta.env.MODE || 'development'
// Export the configuration for the current environment
export default config[env]