gko / gko.github.io

my website

Home Page:https://konstantin.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Memory Leak in gatsby-node build with canvas createCanvas

mehdibetari opened this issue · comments

commented

Hi,
I use your method for creating preview in gatsby-node.js for the twitter card of my articles, I have thousands of pages (more than 3000) and the build it goes without error but does not end.
[line 51]const createPreview = (title, fileName) => {...}

If I comment the method all ends well, I have the impression that there are memory leaks with the creation of canvas.
[line55]createCanvas(...)

Thanks for your help