PUPPETER AND PDF
I need help i am having problem randomly to launch puppeter. i use the instance only to create a PDF
Solution:Jump to solution
you can deploy this template https://railway.app/template/browserless into your project then use its
BROWSER_WS_ENDPOINT
variable as the browserWSEndpoint
option to puppeteer.connect
as shown in the browserless docs https://www.browserless.io/docs/puppeteer-library5 Replies
Project ID:
6ef3d433-2f28-41b5-a2db-0be2754c6c4a
6ef3d433-2f28-41b5-a2db-0be2754c6c4a
i am using nixpacks
i can recommend using browserless instead of chrome, i am currently working on the template and will update you when done
Solution
you can deploy this template https://railway.app/template/browserless into your project then use its
BROWSER_WS_ENDPOINT
variable as the browserWSEndpoint
option to puppeteer.connect
as shown in the browserless docs https://www.browserless.io/docs/puppeteer-libraryit doesnt do pdfs, but heres a good example https://github.com/brody192/puppeteer-example