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

@Cloudflare (Server Owner) is anyone

@Cloudflare (Server Owner) is anyone else having this problem?

Is anyone having failures with `npx

Is anyone having failures with npx wrangler login today? It was working fine yesterday, but dtoday I'm getting a non-json response back from the API SyntaxError: Unexpected token < in JSON at position 0

nvm I figured it out after running

nvm I figured it out after running wrangler pages download config <PROJECT> and looking at how the generated config is setup. The service bindings should be in the production environment. The docs aren't clear about this and there aren't really any error messages during deployment ```toml [env.production] compatibility_date = "2024-04-06"...

Not sure if this is a #wrangler or #

Not sure if this is a #wrangler or #miniflare issue, but the following code will throw in wrangler dev (ignored/safe in production): Error Reproduction ```ts export default {...

I'm trying to get my local d1 database

I'm trying to get my local d1 database from one local project to another local project, i.e., from one dir to another dir without re-running the wrangler d1 execute --local --file=.sql approach. I thought I could just move the .wrangler/state/v3/d1 dir over to another dir and spin things up but that did not work. Is there some other approach I could use? My problem is that I use a separate worker to load portions of the database and I was hoping to avoid moving that worker and its config over to another dir temporarily to get the database fully loaded. Thanks!...

Is it possible to configure wrangler to

Is it possible to configure wrangler to open something other than localhost when working locally? [wrangler:inf] Ready on http://localhost:8788, I'd like it to open a local alias instead of localhost but still maintain the protocol and port, e.g., http://<local-alias>:8788... it's mainly to get around CORS stuff 🙄...

That sounds like you have a library

That sounds like you have a library which is trying to use an unsupported field (credentials). Whilst browsers support that, Workers don't.

hello, kind of new in the game but it

hello, kind of new in the game but it seems since the last version of wrangler (or something else) that the workerd serve on my computer stays in a running state all the time. Is there a trick I don't know about. right now I need to kill it manually

Could a `metafile` option be added to

Could a metafile option be added to wrangler deploy to expose esbuild's metafile? I see that wrangler uses it internally, but it isn't exposed anywhere so you can't use standard tools to do bundle size analysis

Wranger uses esbuild under the hood (

Wrangler uses esbuild under the hood (https://developers.cloudflare.com/workers/wrangler/bundling/). Is there a way to configure it to output the esbuild meta file (https://esbuild.github.io/api/#metafile) to better understand the bundle it creates?...

Logpush · Cloudflare Workers docs

Hey guys, anyone have info on how to enable Workers Trace Events Logpush? I'm on workers Paid plan and always getting "Access Denied" when runing the command to enable logpush to R2, but trying to list the logpush jobs returns an empty list using the same credentials, I also can't find the menu "Analytics & Logs > Logs" as stated in the docs: https://developers.cloudflare.com/workers/observability/logpush/

Hello, I have a question about `keep_

Hello, I have a question about keep_vars option, is it supposed to only prevent variables that exist in the dashboard but not in Wrangler from being deleted, or also prevent same variables from being overridden? My issue is that I'm trying to find a way to prevent vars in dashboard from being overridden by wrangler when deploying, is it possible?...

i am using `wrangler pages dev ./public`

i am using wrangler pages dev ./public to run a CF page locally and none of the shortcut works │ [b] open a browser, [d] open Devtools, [c] clear console, [x] to exit . idea? wrangler 3.15.0.

🐛 BUG: Wrangler throwing an error fails...

@Adam, sorry for the ping - is https://github.com/cloudflare/workers-sdk/issues/3696 the mentioned port in use race condition? :p

Wrangler DX feedback

Hey devs, we'd love to hear your feedback on the @Wrangler CLI development experience, if you'd like to help us improve it, please share your feedback in this thread

There are no special instructions for

There are no special instructions for migrating from Wrangler v2 to v3. You should be able to update Wrangler by following the instructions in Install/Update Wrangler. You should experience no disruption to your workflow.
https://developers.cloudflare.com/workers/wrangler/migration/update-v2-to-v3/...

`wrangler pages dev` failing to start

I did it, but still have the issue.

Ah ok so it looks like the order you

Ah ok, so it looks like the order you call unstable_dev is important here. Moving const user = await unstable_dev(...) before const core = await unstable_dev(...) seems to work. Would you mind opening a GitHub issue for this? We're just starting a rewrite of wrangler dev's internals, and this is something we should consider. 👍