// API配置
const env = import.meta.env.MODE || 'development';

const config = {
  development: {
    // apiBaseUrl: 'http://192.168.5.49:48080',
    apiBaseUrl: 'http://36.103.234.48:48088',
    chatApiUrl: 'http://36.103.234.48:8093'
  },
  production: {
    // apiBaseUrl: 'http://221.238.217.216:4162',
    // chatApiUrl: 'http://221.238.217.216:8093',
    apiBaseUrl: 'http://36.103.234.48:48088',
    chatApiUrl: 'http://36.103.234.48:8093',
  }
};

export const getApiBaseUrl = () => {
  return config[env].apiBaseUrl;
};
export const getChatApiUrl = () => {
  return config[env].chatApiUrl;
}

export default config; 