mirror of
https://github.com/ful1e5/apple_cursor.git
synced 2025-05-17 08:35:03 -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
|
||||
(async () => {
|
||||
const browser = await puppeteer.launch({
|
||||
ignoreDefaultArgs: process.env.IS_LOCAL ? [" --single-process "] : [],
|
||||
executablePath: process.env.IS_LOCAL ? "/usr/bin/google-chrome-stable" : "",
|
||||
ignoreDefaultArgs: [" --single-process ", "--no-sandbox"],
|
||||
executablePath:
|
||||
process.env.NODE_ENV == "development"
|
||||
? "/usr/bin/google-chrome-stable"
|
||||
: "",
|
||||
headless: true,
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue