nebula/config/api.config.js

37 lines
1.2 KiB
JavaScript
Raw Permalink Normal View History

2024-02-03 15:07:02 +08:00
import {NODE_ENV} from '../environment'
2020-06-22 17:13:42 +08:00
const apisMap = {
development: {
FE: 'http://localhost:3000',
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',
2024-04-05 10:48:32 +08:00
GRAVATAR: 'https://static.rymcu.com/avatar',
VDITOR: 'https://static.rymcu.com/vditor@3.10.3/',
VDITOR_CSS: 'https://static.rymcu.com/vditor@3.10.3/dist/css/content-theme'
2020-06-22 17:13:42 +08:00
},
2022-09-18 21:56:16 +08:00
test: {
2023-09-08 18:15:07 +08:00
FE: 'https://rymcu.com',
BASE: 'https://rymcu.com',
2022-09-18 21:56:16 +08:00
CDN: 'https://static.rymcu.com',
PROXY: 'https://static.rymcu.com/proxy',
2023-09-08 18:15:07 +08:00
SOCKET: 'https://rymcu.com/wss',
2022-09-18 21:56:16 +08:00
GRAVATAR: 'https://static.rymcu.com/avatar',
2024-04-05 10:48:32 +08:00
VDITOR: 'https://static.rymcu.com/vditor@3.10.3/',
VDITOR_CSS: 'https://static.rymcu.com/vditor@3.10.3/dist/css/content-theme'
2022-09-18 21:56:16 +08:00
},
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',
2024-04-05 10:48:32 +08:00
VDITOR: 'https://static.rymcu.com/vditor@3.10.3/',
VDITOR_CSS: 'https://static.rymcu.com/vditor@3.10.3/dist/css/content-theme'
2020-06-22 17:13:42 +08:00
}
}
export default apisMap[NODE_ENV]