polotno-node 2.9.2 → 2.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -313,6 +313,16 @@ const instance = await createInstance({
313
313
 
314
314
  `polotno-node` should work by default on AWS Lambda. But in some cloud providers you may need to do extra steps to reduce function size.
315
315
 
316
+ ### AWS EC2
317
+
318
+ EC2 has some troubles with loading fonts. To fix the issue install Google Chrome, it will load all required libraries.
319
+
320
+ ```bash
321
+ curl https://intoli.com/install-google-chrome.sh | bash
322
+ ```
323
+
324
+ Got it from here: https://github.com/puppeteer/puppeteer/issues/765#issuecomment-353694116
325
+
316
326
  ### Browserless usage
317
327
 
318
328
  You can speed up your function execution a lot, if instead of using full browser you will use [browserless.io](https://browserless.io/) service. It is a paid service not affiliated with Polotno.
@@ -328,6 +338,7 @@ const instance = await createInstance({
328
338
  browser: await puppeteer.connect({
329
339
  browserWSEndpoint: 'wss://chrome.browserless.io?token=API_KEY',
330
340
  }),
341
+ url: 'https://yourappdomain.com/client', // see "Your own client" section
331
342
  });
332
343
  ```
333
344