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
Aa50005/14/2024

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
MMagical.Puffin4/6/2024

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"...
KKevin3/27/2024

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 {...
BBilly3/18/2024

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!...
BBilly2/7/2024

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 🙄...
Kkian1/4/2024

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.
SMSébastien Morel12/15/2023

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
Jjohnpyp12/11/2023

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
JPJJan Piotrowski (janpio)11/25/2023

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?...
KKhaled11/15/2023

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?...
Jjiangok11/14/2023

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.
DDj10/24/2023

🐛 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
VVero10/13/2023

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
Ssathoro9/15/2023

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/...
TTeruhisa8/30/2023

`wrangler pages dev` failing to start

I did it, but still have the issue.
MMrBBot8/30/2023

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. 👍
Ttelefonmann8/17/2023

Hi i am developing a nextjs app and use

Hi, i am developing a nextjs app and use npx @cloudflare/next-on-pages@1 --watch and npx wrangler@3.5.1 pages dev .vercel/output/static --compatibility-date=2023-08-14 --live-reload --compatibility-flag=nodejs_compat in parallel. As soon as i edit a file that will be a function the recompiling leads to a crash of wrangler. Is there anything i did wrong?
AZalex | zellic.io8/14/2023

hi im not sure if some release went

hi im not sure if some release went weird or I need to wait but i'm trying to install wrangler@latest and i'm getting Error: Expected "2023-08-14" but got "workerd 2023-08-01"
Next