🔧 NODE_ENV added

This commit is contained in:
KaizIqbal 2020-07-28 10:07:22 +05:30
parent e864dbd51f
commit 1b38f99752

View file

@ -17,8 +17,11 @@ const frameNumber = (number: number, length: number) => {
// --------------------------- Main // --------------------------- Main
(async () => { (async () => {
const browser = await puppeteer.launch({ const browser = await puppeteer.launch({
ignoreDefaultArgs: process.env.IS_LOCAL ? [" --single-process "] : [], ignoreDefaultArgs: [" --single-process ", "--no-sandbox"],
executablePath: process.env.IS_LOCAL ? "/usr/bin/google-chrome-stable" : "", executablePath:
process.env.NODE_ENV == "development"
? "/usr/bin/google-chrome-stable"
: "",
headless: true, headless: true,
}); });