You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
339 B
JavaScript

const env = process.env.NODE_ENV || 'development'
const config = {
development: {
baseUrl: 'http://yiji-qhdzhongyiyuan'
},
production: {
baseUrl: 'http://192.168.80.76'
}
}
export const getBaseUrl = () => {
return config[env]?.baseUrl || config.development.baseUrl
}
export default {
getBaseUrl
}