2020-07-03 11:04:25 +08:00
|
|
|
import {NODE_ENV} from '../environment'
|
2020-06-22 17:13:42 +08:00
|
|
|
|
|
|
|
const apisMap = {
|
|
|
|
development: {
|
|
|
|
FE: 'http://localhost:3000',
|
2021-01-26 10:04:49 +08:00
|
|
|
BASE: 'http://localhost:8099/forest',
|
2020-06-22 17:13:42 +08:00
|
|
|
CDN: '',
|
|
|
|
PROXY: '/proxy',
|
2021-03-26 11:32:11 +08:00
|
|
|
SOCKET: 'http://localhost:3000/wss',
|
2020-06-22 17:13:42 +08:00
|
|
|
GRAVATAR: '/proxy/static.rymcu.com/avatar'
|
|
|
|
},
|
|
|
|
production: {
|
|
|
|
FE: 'https://rymcu.com',
|
2020-08-02 00:25:44 +08:00
|
|
|
BASE: 'https://rymcu.com',
|
2020-11-30 20:42:24 +08:00
|
|
|
CDN: 'https://static.rymcu.com',
|
|
|
|
PROXY: 'https://static.rymcu.com/proxy',
|
2021-03-25 21:48:05 +08:00
|
|
|
SOCKET: 'https://rymcu.com/ws',
|
2020-06-22 17:13:42 +08:00
|
|
|
GRAVATAR: 'https://static.rymcu.com/avatar'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default apisMap[NODE_ENV]
|