import type { CacpConfig } from '@cacp/ui'

const devConfig: CacpConfig = {
  SERVICE_ID: 'demo',
  SERVICE_NAME: 'Demo',
//  SERVICE_API: 'http://10.200.73.47:18003',
  SERVICE_API: 'http://127.0.0.1:18003',
  SERVICE_PAGESIZE: 20,
  SERVICE_TIMEOUT: 10000,
//  FRAME_API: 'http://10.200.73.47:15090',
  FRAME_API: 'http://127.0.0.1:15090',
  NEED_USER_AUTHORITY: true,
  AUTH_MODE: 'Cookie'
}

const $config = (window as any).$config as CacpConfig
const { DEV } = import.meta.env
export default DEV ? devConfig : $config
