Why is process.exit(1) added in nodeHtmlToImage method? #193
-
hi everyone, I am using this library and sometimes I get timeout issues while converting HTML to images. Since this timeout issue rarely comes, I can manage that, but my main concern is that the server stops and POD restarts every time I get a timeout issue. @frinyvonnick Any idea why you have added Is there any purpose for adding |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @silhouette5366 👋 When I created node-html-to-image it was for my own usage. My main usecase was creating thumbnails for blogposts on a gatsby app. It was called during the build process so in a CLI context, I wanted it to stop the process if something went wrong. I know some people have different usage for the library now. So feel free to open an issue/pull request about it 😄 |
Beta Was this translation helpful? Give feedback.
Hello @silhouette5366 👋 When I created node-html-to-image it was for my own usage. My main usecase was creating thumbnails for blogposts on a gatsby app. It was called during the build process so in a CLI context, I wanted it to stop the process if something went wrong. I know some people have different usage for the library now. So feel free to open an issue/pull request about it 😄