Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support binding for Cloudflare Browser Rendering API #259

Closed
ninjasai92 opened this issue Sep 4, 2024 · 0 comments · Fixed by #271
Closed

Support binding for Cloudflare Browser Rendering API #259

ninjasai92 opened this issue Sep 4, 2024 · 0 comments · Fixed by #271
Labels
enhancement New feature or request

Comments

@ninjasai92
Copy link

ninjasai92 commented Sep 4, 2024

Describe the bug
In my NuxtHub project, I need to use the Cloudflare Browser Rendering API (which is powered by Puppeteer) in one of my Nuxt server routes. I'm not sure where to add this required "browser binding" in my NuxtHub project:
browser = { binding = "MYBROWSER" }.

Steps to reproduce
I'm following this guide on Cloudflare docs. Specifically, see step 4 about adding a "browser binding".

Expected behavior
When my Nuxt server route (api/browser/browse?url=example.com) is called, I want to use the Cloudflare Browser Rendering API to perform a few actions on the webpage and take screenshots.

@atinux atinux added the enhancement New feature or request label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants