use enquirer instead of prompts, use plugin for cancel after timeout

This commit is contained in:
Ralf Vogler 2023-02-21 23:25:18 +01:00
parent 8c2ac3b6d0
commit efeccf9493
5 changed files with 49 additions and 54 deletions

View file

@ -12,7 +12,7 @@ export const cfg = {
width: Number(process.env.WIDTH) || 1280, // width of the opened browser
height: Number(process.env.HEIGHT) || 1280, // height of the opened browser
timeout: (Number(process.env.TIMEOUT) || 20) * 1000, // 20s, default for playwright is 30s
login_timeout: (Number(process.env.LOGIN_TIMEOUT) || 180) * 1000, // higher 3min timeout for login
login_timeout: (Number(process.env.LOGIN_TIMEOUT) || 180) * 1000, // higher timeout for login, will wait twice: prompt + wait for manual login
novnc_port: process.env.NOVNC_PORT, // running in docker if set
notify: process.env.NOTIFY, // apprise notification services
get dir() { // avoids ReferenceError: Cannot access 'dataDir' before initialization