dashboard/src/config.js
2025-08-12 16:55:26 +08:00

17 lines
317 B
JavaScript

// API配置
const env = import.meta.env.MODE || 'development';
const config = {
development: {
apiBaseUrl: 'http://192.168.5.49:48080',
},
production: {
apiBaseUrl: 'http://36.103.199.218:48088',
}
};
export const getApiBaseUrl = () => {
return config[env].apiBaseUrl;
};
export default config;