9/18/2023 0 Comments Download puppeteer sharp for free![]() Such as customizing the component’s style, don’t show the error message on the card if fetch meta data failed (because the SEO of some websites may not be perfect) and previewing all links with the screenshot. This plugin is inspired by gatsby-remark-link-preview, and added some of my thoughts. Which no longer relies on sharp, but calls the method of the official plugin gatsby-plugin-sharp to process screenshots. If you encounter such issues, please update the dependencies according to the official documentation mentioned above.īetter solution: It is recommended to use the 2.1.0 or higher version of this plugin. According to the gatsby-plugin-sharp documentation, it might cause some issues when there are multiple incompatible versions of the sharp dependency in different packages. Version 1.2.x and 2.0.x of this plugin will use the sharp to resize screenshots. So projects that rely on this plugin may have unpredictable problems (e.g., errors, timeouts) when building on Gatsby Cloud, please choose to remove this plugin or migrate your project to another service that supports Puppeteer (e.g. Since Gatsby Cloud does not support any custom binaries or WASM packages like Puppeteer (see Gatsby issue 20970 and Gatsby issue 31839). PuppeteerLaunchArgs will be passed into puppeteer.launch as args arguments, where you can configure puppeteer launch parameters directly. It is recommended to set browserNumer depending on the size of your memory. This plugin will open 5 tabs per browser at most, so 15 pages can be handled at the same time in default. ![]() The quality of the screenshot images in %īrowserNumer is the number of browsers launched. Whether to generate preview images or not Then the plugin will embed a card with the link’s target website information in the page.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |