mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 14:37:41 +00:00
hotfix: make HEADLESS default true
Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
+2
-2
@@ -1,5 +1,7 @@
|
|||||||
EMAIL_USERNAME="youremail@gmail.com"
|
EMAIL_USERNAME="youremail@gmail.com"
|
||||||
EMAIL_PASSWORD="secretpassword"
|
EMAIL_PASSWORD="secretpassword"
|
||||||
|
HEADLESS="true"
|
||||||
|
LOG_LEVEL="info"
|
||||||
NOTIFICATION_TEST="false"
|
NOTIFICATION_TEST="false"
|
||||||
OPEN_BROWSER="true"
|
OPEN_BROWSER="true"
|
||||||
PAGE_TIMEOUT="30000"
|
PAGE_TIMEOUT="30000"
|
||||||
@@ -16,5 +18,3 @@ STORES="bestbuy,bandh,nvidia"
|
|||||||
SCREENSHOT="true"
|
SCREENSHOT="true"
|
||||||
TELEGRAM_ACCESS_TOKEN=""
|
TELEGRAM_ACCESS_TOKEN=""
|
||||||
TELEGRAM_CHAT_ID="1234"
|
TELEGRAM_CHAT_ID="1234"
|
||||||
HEADLESS="true"
|
|
||||||
LOG_LEVEL="info"
|
|
||||||
@@ -64,8 +64,8 @@ Here is a list of variables that you can use to customize your newly copied `.en
|
|||||||
|:---:|---|---|
|
|:---:|---|---|
|
||||||
| `EMAIL_USERNAME` | Gmail address | E.g.: `jensen.robbed.us@gmail.com` |
|
| `EMAIL_USERNAME` | Gmail address | E.g.: `jensen.robbed.us@gmail.com` |
|
||||||
| `EMAIL_PASSWORD` | Gmail password | See below if you have MFA |
|
| `EMAIL_PASSWORD` | Gmail password | See below if you have MFA |
|
||||||
| `HEADLESS` | Puppeteer to run headless or not (Debugging Purposes) |
|
| `HEADLESS` | Puppeteer to run headless or not | Debugging related, default: `true` |
|
||||||
| `LOG_LEVEL` | [Logging levels](https://github.com/winstonjs/winston#logging-levels) (Debugging Purposes) |
|
| `LOG_LEVEL` | [Logging levels](https://github.com/winstonjs/winston#logging-levels) | Debugging related, default: `info` |
|
||||||
| `NOTIFICATION_TEST` | Test all the notifications configured | Default: `false` |
|
| `NOTIFICATION_TEST` | Test all the notifications configured | Default: `false` |
|
||||||
| `OPEN_BROWSER` | Toggle for whether or not the browser should open when item is found | Default: `true` |
|
| `OPEN_BROWSER` | Toggle for whether or not the browser should open when item is found | Default: `true` |
|
||||||
| `PAGE_TIMEOUT` | Navigation Timeout in milliseconds | `0` for infinite, default: `30000` |
|
| `PAGE_TIMEOUT` | Navigation Timeout in milliseconds | `0` for infinite, default: `30000` |
|
||||||
|
|||||||
+1
-1
@@ -51,7 +51,7 @@ const stores = process.env.STORES ? process.env.STORES.split(',') : ['nvidia'];
|
|||||||
|
|
||||||
const openBrowser = process.env.OPEN_BROWSER === 'true';
|
const openBrowser = process.env.OPEN_BROWSER === 'true';
|
||||||
|
|
||||||
const isHeadless = process.env.HEADLESS === 'true';
|
const isHeadless = process.env.HEADLESS ? process.env.HEADLESS === 'true' : true;
|
||||||
|
|
||||||
const showOnlyBrands = process.env.SHOW_ONLY_BRANDS ? process.env.SHOW_ONLY_BRANDS.split(',') : [];
|
const showOnlyBrands = process.env.SHOW_ONLY_BRANDS ? process.env.SHOW_ONLY_BRANDS.split(',') : [];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user