-
Notifications
You must be signed in to change notification settings - Fork 52
/
config.mjs
39 lines (36 loc) · 895 Bytes
/
config.mjs
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
// @ts-check
/* Variables / Config */
export const config = {
tempImgPath: "public/temp-img/",
crawlerFilePath: "stylify-crawler.js",
screenshotCacheTime: 5000, //in ms (1000ms = 1 sec)
validRefs: [
"http://stylifyme.com",
"http://www.stylifyme.com",
"http://api.stylifyme.com",
"http://stylify.herokuapp.com",
"http://localhost:9185",
"http://localhost:7210",
],
};
/**
* @type {import("puppeteer").LaunchOptions & import("puppeteer").LaunchOptions & import("puppeteer").BrowserLaunchArgumentOptions & import("puppeteer").BrowserConnectOptions}
*/
const chromeOptions = {
headless: true,
defaultViewport: {
width: 1280,
height: 1024,
deviceScaleFactor: 1,
},
args: [
"--incognito",
"--no-sandbox",
"--single-process",
"--no-zygote",
"--enable-automation",
],
};
export const parsingConfig = {
chromeOptions,
};