mirror of
https://github.com/ful1e5/apple_cursor.git
synced 2025-05-17 16:44:59 -04:00
🔧 NODE_ENV added
This commit is contained in:
parent
e864dbd51f
commit
1b38f99752
1 changed files with 5 additions and 2 deletions
|
@ -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,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue