nebula/config/api.config.js

23 lines
557 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',
2020-07-02 23:45:27 +08:00
BASE: 'https://rymcu.com/vertical-console',
2020-06-22 17:13:42 +08:00
CDN: '',
PROXY: '/proxy',
SOCKET: 'http://localhost:3000',
GRAVATAR: '/proxy/static.rymcu.com/avatar'
},
production: {
FE: 'https://rymcu.com',
BASE: 'https://api.rymcu.com',
CDN: 'https://cdn.rymcu.com',
PROXY: 'https://cdn.rymcu.com/proxy',
SOCKET: 'https://rymcu.com',
GRAVATAR: 'https://static.rymcu.com/avatar'
}
}
export default apisMap[NODE_ENV]