nebula/config/api.config.js

23 lines
555 B
JavaScript
Raw Normal View History

2020-06-22 17:13:42 +08:00
import { NODE_ENV } from '../environment'
const apisMap = {
development: {
FE: 'http://localhost:3000',
2020-06-23 17:40:43 +08:00
BASE: 'http://localhost:8099/vertical',
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]