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',
|
2022-09-15 16:11:27 +08:00
|
|
|
BASE: 'http://test.rymcu.com',
|
2020-06-22 17:13:42 +08:00
|
|
|
CDN: '',
|
|
|
|
PROXY: '/proxy',
|
2021-03-28 14:55:45 +08:00
|
|
|
SOCKET: 'http://localhost:3000/ws',
|
2022-05-24 11:07:05 +08:00
|
|
|
GRAVATAR: '/proxy/static.rymcu.com/avatar',
|
|
|
|
VDITOR: 'https://static.rymcu.com/vditor@3.8.14/',
|
|
|
|
VDITOR_CSS: 'https://static.rymcu.com/vditor@3.8.14/dist/css/content-theme'
|
2020-06-22 17:13:42 +08:00
|
|
|
},
|
|
|
|
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-29 23:56:38 +08:00
|
|
|
SOCKET: 'https://rymcu.com/wss',
|
2022-05-24 11:07:05 +08:00
|
|
|
GRAVATAR: 'https://static.rymcu.com/avatar',
|
|
|
|
VDITOR: 'https://static.rymcu.com/vditor@3.8.14/',
|
|
|
|
VDITOR_CSS: 'https://static.rymcu.com/vditor@3.8.14/dist/css/content-theme'
|
2020-06-22 17:13:42 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default apisMap[NODE_ENV]
|