farmcontrol-ui/src/config.js

21 lines
600 B
JavaScript

const config = {
development: {
backendUrl: 'https://dev.tombutcher.work/api',
printServerUrl: 'ws://192.168.68.53:8081',
apiServerUrl: 'https://dev-wss.tombutcher.work',
logLevel: 'trace'
},
production: {
backendUrl: 'https://dev.tombutcher.work/api',
printServerUrl: 'ws://192.168.68.53:8081',
apiServerUrl: 'https://dev-wss.tombutcher.work',
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]