nebula/config/api.config.js
2020-06-22 17:13:42 +08:00

23 lines
563 B
JavaScript

import { NODE_ENV } from '../environment'
const apisMap = {
development: {
FE: 'http://localhost:3000',
BASE: 'http://localhost:8099/vertical-console',
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]