Kamran
CDCloudflare Developers
•Created by Kamran on 10/27/2023 in #pages-help
Can I access a relative path outside build root directory to other repo files?
As a workaround I was able to set the root back to the repo, and muck with the build command instead. That worked but I don't love it 🙂
3 replies
CDCloudflare Developers
•Created by Kamran on 3/22/2023 in #workers-help
mTLS fetch throwing `TypeError: Illegal invocation` when passed around
@skye_31 Couldn't CF bind the function before injecting it into worker scripts? Or would that have other consequences.
2 replies
CDCloudflare Developers
•Created by bennycondon on 3/22/2023 in #workers-help
Generating images in Workers
@HardAtWork I think I mean to say that to be able to generate the image (using canvas, or even CSS/HTML) in the same request, you'd need to evaluate some script within puppeteer/rendering API before capturing it, if you didn't point it at an existing page to navigate to. So like
page.evaluate(myscript)
and then await page.screenshot()
.8 replies
CDCloudflare Developers
•Created by bennycondon on 3/22/2023 in #workers-help
Generating images in Workers
@HardAtWork interesting, you mean have Puppeteer actually generate it within the same request? Inject a script? Would be interested to see that.
8 replies
CDCloudflare Developers
•Created by bennycondon on 3/22/2023 in #workers-help
Generating images in Workers
Using the Rendering API, you might then have a worker (or the same worker) actually serve a webpage and then use another worker request to capture it and store it and serve it as an image.
8 replies