dashboard/src/config.js

17 lines
314 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: {
apiBaseUrl: 'http://127.0.0.1:48996',
},
production: {
apiBaseUrl: 'http://36.103.199.107:48996',
}
};
export const getApiBaseUrl = () => {
return config[env].apiBaseUrl;
};
export default config;