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

const devConfig: CacpConfig = {
  SERVICE_ID: 'demo',
  SERVICE_NAME: 'Demo',
  SERVICE_API: 'http://10.200.73.47:18001',
  // SERVICE_API: 'http://10.200.73.47:15090',
  SERVICE_PAGESIZE: 20,
  SERVICE_TIMEOUT: 150000,
  FRAME_API: 'http://10.200.73.47:15090',
  NEED_USER_AUTHORITY: true,
  AUTH_MODE: 'JWT',
  CUSTOMS_CODE: '0000'
}

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