UNPKG

469 BJavaScriptView Raw
1export const HOST_MAP = {
2 dev: 'http://localhost:9000',
3 demo: 'http://lab.25sprout.com',
4 production: 'http://lab.25sprout.com',
5};
6
7const SELF_HOST_MAP = {
8 dev: 'http://localhost:3000',
9 demo: '',
10 production: '',
11};
12
13export const API_ENDPOINT = HOST_MAP[process.env.API];
14export const SELF_HOST_ENDPOINT = SELF_HOST_MAP[process.env.API];
15
16export default {
17 // Set API endpoint
18 API_ENDPOINT: `"${API_ENDPOINT}"`,
19 SELF_HOST_ENDPOINT: `"${SELF_HOST_ENDPOINT}"`,
20};