1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 20:59:44 +02:00
planka/client/src/constants/Config.js

26 lines
539 B
JavaScript
Raw Normal View History

const SERVER_BASE_URL =
process.env.REACT_APP_SERVER_BASE_URL ||
(process.env.NODE_ENV === 'production' ? '' : 'http://localhost:1337');
2019-08-31 04:07:25 +05:00
const FETCH_OPTIONS =
process.env.NODE_ENV === 'production'
? undefined
: {
credentials: 'include',
};
const ACCESS_TOKEN_KEY = 'accessToken';
const ACCESS_TOKEN_EXPIRES = 365;
2019-08-31 04:07:25 +05:00
const POSITION_GAP = 65535;
2022-08-04 13:31:14 +02:00
const ACTIVITIES_LIMIT = 50;
2019-08-31 04:07:25 +05:00
export default {
SERVER_BASE_URL,
FETCH_OPTIONS,
ACCESS_TOKEN_KEY,
ACCESS_TOKEN_EXPIRES,
2019-08-31 04:07:25 +05:00
POSITION_GAP,
2022-08-04 13:31:14 +02:00
ACTIVITIES_LIMIT,
2019-08-31 04:07:25 +05:00
};