dashboard/src/config.js

17 lines
317 B
JavaScript
Raw Normal View History

2025-06-09 14:59:40 +08:00
// API配置
const env = import.meta.env.MODE || 'development';
const config = {
development: {
2025-06-12 10:35:31 +08:00
apiBaseUrl: 'http://192.168.18.25:48080',
2025-06-09 14:59:40 +08:00
},
production: {
2025-06-13 16:21:35 +08:00
apiBaseUrl: 'http://36.103.203.89:48089',
2025-06-09 14:59:40 +08:00
}
};
export const getApiBaseUrl = () => {
return config[env].apiBaseUrl;
};
export default config;