-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.ts
47 lines (45 loc) · 938 Bytes
/
config.ts
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
import queries from './queries'
const config = {
productQueries: queries,
puppeteer: {
devtools: process.env.DEBUG === 'true'
},
/**
* Every how often we crawl all pages
*/
crawler: {
/**
* How much to wait between each product search
*/
delayPerQuery: 4000,
/**
* Cron time gap
*/
interval: 60 * 1000,
navigationTimeout: 10 * 1000,
screenshotViewport: {
width: 1280,
height: 1024
}
},
email: {
from: process.env.EMAIL_FROM,
to: process.env.EMAIL_TO,
smtpConfig: {
host: process.env.EMAIL_HOST || 'smtp.gmail.com',
port: 587,
secure: false, // upgrade later with STARTTLS
auth: {
user: process.env.EMAIL_USER,
pass: process.env.EMAIL_PASSWORD
}
}
},
persistance: {
/**
* Storage is relative to the project root folder
*/
path: './.storage'
}
}
export default config