-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
28 lines (25 loc) · 782 Bytes
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const pkg = require('./package');
const { description } = pkg;
const config = {
development: {
title: description,
serverUrl: 'https://easy-mock.com/mock/5b5808b436d0751a61c15291/next-api/development',
},
mock: {
title: description,
serverUrl: 'https://easy-mock.com/mock/5b5808b436d0751a61c15291/next-api/mock',
},
test: {
title: description,
serverUrl: 'https://easy-mock.com/mock/5b5808b436d0751a61c15291/next-api/test',
},
production: {
title: description,
serverUrl: 'https://easy-mock.com/mock/5b5808b436d0751a61c15291/next-api/production',
},
default: {
title: description,
serverUrl: 'https://easy-mock.com/mock/5b5808b436d0751a61c15291/next-api',
},
};
export const get = env => config[env] || config.default;