File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ const config = {
99 DEBUG_MODE : process . env . DEBUG_MODE === 'true' ,
1010 CORS_ORIGIN : process . env . CORS_ORIGIN || '*' ,
1111 BROWSER_WS_ENDPOINT : process . env . BROWSER_WS_ENDPOINT ,
12+ BROWSER_EXECUTABLE_PATH : process . env . BROWSER_EXECUTABLE_PATH ,
1213 API_TOKENS : [ ] ,
1314} ;
1415
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ async function createBrowser(opts) {
1313 browserOpts . browserWSEndpoint = config . BROWSER_WS_ENDPOINT ;
1414 return puppeteer . connect ( browserOpts ) ;
1515 }
16+ if ( config . BROWSER_EXECUTABLE_PATH ) {
17+ browserOpts . executablePath = config . BROWSER_EXECUTABLE_PATH ;
18+ }
1619 browserOpts . headless = ! config . DEBUG_MODE ;
1720 browserOpts . args = [ '--disable-gpu' , '--no-sandbox' , '--disable-setuid-sandbox' ] ;
1821 return puppeteer . launch ( browserOpts ) ;
You can’t perform that action at this time.
0 commit comments