-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.js
68 lines (53 loc) · 1.63 KB
/
constants.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
export const DISCOVERY_RATE_LIMIT = [
{
intervalLengthMillis: 24 * 60 * 60 * 1000,
limit: 50,
}, {
intervalLengthMillis: 3 * 60 * 60 * 1000,
limit: 20,
},
];
export const DISCOVERY_EVENT_RATE_LIMIT = [
// unlimited
];
export const SEEDED_PROFILES_START = 10;
export const MAX_DISCOVERY_CARDS_RETRIEVE = 30;
export const DISCOVERY_REFRESH_THRESHOLD = 20;
export const DISCOVERY_CACHE_SIZE = 30;
export const STAT_SNAPSHOT_GENERATION_TIME = 30 * 60 * 1000;
export const LAST_ACTIVE_ARRAY_LEN = 50;
export const LAST_EDITED_ARRAY_LEN = 20;
export const FUZZY_SCHOOL_LIST = [
'Harvard',
'harvard',
'Harvard University',
'Harvard College',
'harvard university',
'harvard college',
'Harvard university',
'Harvard college',
'MIT',
'mit',
'M.I.T.',
'M.I.T',
'Massachusetts Institute of Technology',
'massachusetts institute of technology',
'Mass Tech',
'mass tech',
'Stanford',
'stanford',
'Stanford University',
'Wellesley',
'wellesley',
'Wellesley College',
'wellesley college',
'Wellesley college',
];
export const devMode = process.env.DEV === 'true';
export const regenTestDBMode = (process.env.TASK === 'regen-db' && devMode);
export const performingMigration1 = process.env.TASK === 'migration1';
export const performingMigration2 = process.env.TASK === 'migration2';
export const performingMigration0621192 = process.env.TASK === 'migration062119-2';
export const performingMigration062119 = process.env.TASK === 'migration062119';
export const performingMigration062019 = process.env.TASK === 'migration062019';
export const verbose = process.env.VERBOSE ? process.env.VERBOSE : false;