nebula/config/api.config.js

27 lines
832 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',
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',
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]