make all environment variables consistent & list them in docs (#380)

This commit is contained in:
wukko
2024-03-05 20:19:01 +06:00
committed by GitHub
12 changed files with 94 additions and 47 deletions

View File

@ -3,7 +3,7 @@ import { readFile, writeFile } from 'fs/promises';
import { parse as parseSetCookie, splitCookiesString } from 'set-cookie-parser';
const WRITE_INTERVAL = 60000,
cookiePath = process.env.cookiePath,
cookiePath = process.env.COOKIE_PATH,
COUNTER = Symbol('counter');
let cookies = {}, dirty = false, intervalId;