React-snap: Add flag to Chromium command

Created on 31 Oct 2017  路  7Comments  路  Source: stereobooster/react-snap

Hiya,

The server environment I'm deploying to has security restrictions on running Chromium, so in order for react-snap to run correctly I'll need to add the --no-sandbox flag to Chromium when it runs. How would I go a bout doing that? Cheers.

enhancement

Most helpful comment

need to expose this as option

  const browser = await puppeteer.launch({
    headless: options.headless,
+    args: ['--no-sandbox'] 
  });

related https://github.com/Googlechrome/puppeteer/issues/290

All 7 comments

need to expose this as option

  const browser = await puppeteer.launch({
    headless: options.headless,
+    args: ['--no-sandbox'] 
  });

related https://github.com/Googlechrome/puppeteer/issues/290

Great, thanks again for the quick response.

There is also https://github.com/peterbe/minimalcss/issues/35, in case you are using inlineCSS

There is a PR for this merged, but haven't released package yet

v0.10.0

Thanks for the quick turnaround. React-snap is amazing and I love seeing SSR in my automated docker builds.

Excellent turn-around time. Much appreciated!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

goras picture goras  路  5Comments

stereobooster picture stereobooster  路  9Comments

rohan-deshpande picture rohan-deshpande  路  5Comments

loganpowell picture loganpowell  路  9Comments

ldevalbray picture ldevalbray  路  6Comments