Nah I pass The action doesn’t support multiple folders afaik especially when running different comma

Nah I pass The action doesn’t support multiple folders afaik especially when running different commands ex for pages and workers there are two separate commands 2. I deploy 6 sites and the action is limited to 5 based on the docs 3. All I want is to make the stupid CLI work because it ain’t reading the env variable that is clearly present It worked with a year ago but now that repo is broken too someone changed something…
13 Replies
@zecanard
@zecanard3w ago
Does anyone know how to upload metadata with wrangler kv bulk put? I tried following the docs, passing the following JSON: [ { "key": "key1", "value": "value1", "metadata": "{ \"metadata1\": 1 }" }, { "key": "key2", "value": "value2", "metadata": "{ \"metadata2\": 2 }" } ] But I get the following error: ⛅️ wrangler 3.99.0 ------------------- ✘ [ERROR] Unexpected JSON input from "kv.json". Each item in the array should be an object that matches: interface KeyValue { key: string; value: string; expiration?: number; expiration_ttl?: number; metadata?: object; base64?: boolean; } The item at index 0 is {"key":"key1","value":"value1","metadata":"{ \"metadata1\": 1 }"} The item at index 1 is {"key":"key2","value":"value2","metadata":"{ \"metadata2\": 2 }"} What kind of object do we need to pass for the metadata? In contrast, wrangler kv key put --metadata does accept a JSON-serialized string and works as expected. The bulk put works as expected if I just pass the key and value, or with the example provided in the docs (passing an expiration_ttl).
Unknown User
Unknown User3w ago
Message Not Public
Sign In & Join Server To View
James
James3w ago
wrangler adjacent with workers-types, but just want to make sure folks are aware of https://github.com/cloudflare/workerd/pull/3278. There's a whole bunch of proposed breaking changes there that need some more careful thought/consideration imo.
Unknown User
Unknown User3w ago
Message Not Public
Sign In & Join Server To View
James
James3w ago
Thanks! There's countless examples of people using the types like AiTextGenerationInput, etc. so I'm looking forward to see the direction here. My 2c: it either needs to be a new major workers-types, or walked back so to be an extension of types instead of introducing breaking changes. I'm not personally convinced a separate package makes sense, given how it bypasses all of the great OSS process in workers-types, not to mention is a 0.x.x version so RIP semver, which for a GA product is not great. But thanks for the insight!
Torianna
Torianna3w ago
in most codebases, using any is forbidden like, the whole point of types is to be typed, not bypassed with any
Jürgen Leschner
Hi - I was wondering if there is anything you can share about vite environments and wrangler. It would be really cool if vite-based dev frameworks could be nicely integrated with "regular" cloudflare workers for local dev workflows.
Unknown User
Unknown User3w ago
Message Not Public
Sign In & Join Server To View
Jürgen Leschner
Related question (adjacent to wrangler) I was wondering if Cloudflare will also help to extend some of the other framework adapters e.g. @astro/cloudflare, to enable them to use features like Durable Objects. (context) connecting those 2 questions - i guess what I'm hoping is that adapters might get simpler if the new vite integration allowed for co-development of workers/DOs for server-side apis together with the front-end framework components that depend on those services.
Jürgen Leschner
(wee bit spammy in here today :blob_sweat: - thanks for taking the questions 🙏 )
James Opstad
James Opstad3w ago
We'll be releasing an official Vite plugin in the near future. If you're interested in tinkering with it while it's in progress, it's currently in this repo - https://github.com/flarelabs-net/vite-plugin-cloudflare.
GitHub
GitHub - flarelabs-net/vite-plugin-cloudflare
Contribute to flarelabs-net/vite-plugin-cloudflare development by creating an account on GitHub.
Rick
Rick2w ago
Can I have wrangler do an extra action before every server restart? Right now, wrangler restarts server every time I save my updated source. I want it to also rebuild the css using npx @tailwindcss/cli -i input.css -o output.css and then serve that

Did you find this page helpful?