nebula/config/api.config.js

23 lines
560 B
JavaScript
Raw Normal View History

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-28 14:55:45 +08:00
SOCKET: 'http://localhost:3000/ws',
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',
CDN: 'https://static.rymcu.com',
PROXY: 'https://static.rymcu.com/proxy',
2021-03-29 23:56:38 +08:00
SOCKET: 'https://rymcu.com/wss',
2020-06-22 17:13:42 +08:00
GRAVATAR: 'https://static.rymcu.com/avatar'
}
}
export default apisMap[NODE_ENV]