Cloudflare Developers

CD

Cloudflare Developers

Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news

Join

Has anyone here ever experienced issues

Has anyone here ever experienced issues with accessing a wrangler dev --experimental-local instance on a local network ip?

for clarity `unstable dev` is a wrapper

for clarity, unstable_dev is a wrapper around wrangler dev, so wrangler dev --local corresponds to local: true in unstable_dev

Hey there how do you access R2 bindings

Hey there, how do you access R2 bindings in unstable_dev local: true mode? It seems it's creating fake R2 bindings.

Hey there anyone using local false with

Hey there, anyone using local: false with unstable_dev? It currently hangs Jest (or any script I guess), even when you call worker.stop(). local: true doesn't have this issue.

Error: Could not proxy request: TypeError: fetch failed

I recently upgraded to wrangler 2.12.0 and started getting [pages:err] Error: Could not proxy request: TypeError: fetch failed error all of a sudden. I thought this is an issue with the new version and so downgraded to the version (2.9.1) which I was using earlier but issue still persists. Changed the port of vite dev server to make sure that the port number is not in use already but issue still remains. What could be the reason behind this issue?

and `jq` can extract super easily

and jq can extract super easily:
curl_prod accounts/:account/pages/projects/:pages-project/deployments -s | jq '.result[0].deployment_trigger.metadata.commit_hash
curl_prod accounts/:account/pages/projects/:pages-project/deployments -s | jq '.result[0].deployment_trigger.metadata.commit_hash
...

I m running into an `Authentication

I'm running into an Authentication error [code: 10000] error when executing wrangler dev @ 2.8.1 and I am wondering if I have the correct permission scopes to run the wrangler v2 dev command, can someone confirm if this is sufficient scoped permissions? - account (read) - user (read) - workers (write)...
No description

If I do that I can t run wrangler it s

If I do that, I can't run wrangler (it's not actually installed anywhere when zero-install is used, so I have to use yarn wrangler, which I can't do from outside the project)

That’s the deprecated Wrangler 1

That’s the deprecated Wrangler 1

Logpush Worker

To enable logpush simply add logpush = true to your wrangler.toml Then head to the logpush dash: https://dash.cloudflare.com/?to=/:account/logs And create a job ...

Hi how would I go about using wrangler

Hi, how would I go about using wrangler for dev environment with next.js in edge mode as described in https://developers.cloudflare.com/pages/framework-guides/deploy-a-nextjs-site/ ? I'm making a next.js app to be deployed on pages, not as static export but using the edge runtime. But there is nothing about how to run that locally with wrangler.

Are you running an install before the

Are you running an install before the action?

Hello one my workers suddenly can t be

Hello, one my workers suddenly can't be published anymore, with a workers.api.error.internal_server [code: 10002] error. There's no error at compile time, and the wrangler.toml file has been untouched for 2 weeks (git is my witness). Last time I published it was 2 days ago, and now with reversed changes I still can't publish it. So is it just the Cloudflare's API going through some troubles (and status page is up to date), or potentially breaking changes introduced to wrangler?...

Anyone have a tool they like for bundle

Anyone have a tool they like for bundle size analysis?

Basically with Pages you would only pay

Basically, with Pages, you would only pay for serving the on-demand assets, all static asset requests would be free.

Invalid regexp error

I upgraded today to latest wrangler2, when try starting pages dev mode I get this error message: ✘ [ERROR] [plugin wrangler-module-collector] Invalid regular expression: 112294 │ filter: new RegExp("^(" + [...props.wrangler1xlegacyModuleReferences.fileNames].join("|") + ")$") Anyone else facing some similar problem?...

wrangler secret put raw mode error

I'm trying to setup secret with echo "VALUE" | wrangler secret put MY_SECRET and I keep getting the same error. (I'm using wrangler@beta) ```sh ERROR Raw mode is not supported on the current process.stdin, which Ink uses as input stream by default....