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

Property 'default' does not exist on type 'CacheStorage'

I am seeing a typescript error for let response = await caches.default.match(req); which shows Property 'default' does not exist on type 'CacheStorage'. ts(2339) It seems to be using the CacheStorage definition from /node_modules/typescript/lib/lib.dom.d.ts instead of @cloudflare/workers-types...

Cache API questions

yeah sorry should have been clearer

Here s a quick snippet for you that

Here's a quick snippet for you that should work: ```ts export default { async fetch(request: Request) { if (new URL(request).pathname === '/app') {...

Generally speaking if you re looking at

Generally speaking if you're looking at firebase and all that I don't think it matters much if you just use postgres like a nosql database aha. I doubt the scale you'd be looking at would be enough to suitable strain postgres before something like firebase would be unrealistically expensive aha. However, you can self host supabase with something like yugabyte db which can support fat rows....

can you screenshot your cloudflare

can you screenshot your cloudflare dashboard nav showing d1 then I can add you to the channel 🙂

In workers I can access D1 when I deploy

In workers. I can access D1 when I deploy using a separate worker, but not in the Remix loader. Also I cannot access D1 when local testing with miniflare.

Hydration problem

So are you partially Server-Side Rendering a Client-Side Framework? That sounds like you are over complicating things…

Probably your package json or are you

Probably your package.json - or are you using an old wrangler version which had webpack built in? If you can share your project or the package.json, that would be helpful

I want to create a worker that

I want to create a worker that dynamically generates and returns a barcode as an image (so I can embed a link directly to the worker which will generate the barcode on the fly). I've managed to work up a proof-of-concept in Pipedream using bwipjs - I don't think it's supported on CF Workers though. Anybody have any ideas?...

I m confused it seems to be possible to

I'm confused, it seems to be possible to either purge by key locally or purge all assets globally. Is it possible to purge by key globally?

Otto's Issue

The worker is now just returning the text "internal"

I dont understand what you are trying to

I dont understand what you are trying to say 🤔 as in you currently dont use workers but you want to switch over to workers without the site going down?

What does Worker is not completely set

What does "Worker is not completely set up" usually mean? It appears that my worker is ready on the dashboard (it looks the same as all my other workers 🤷‍♂️ )
No description

Rust-WASM & Async

Async is supported fine, it's just on the JavaScript runtime

Workers as load balance health probes

Is it possible to use a worker as an intelligent health probe for an origin in load balance setup?

WASM & WASI docs - what would you like to see?

Hi all! We think the WebAssembly ecosystem within Workers can bring some great possibilities but the current documentation about how to leverage it doesn’t do it justice. If there was going to be a documentation section dedicated to building, bundling and utilising WASM/WASI, what are some examples of what you’d like to see?...

gustwindevaluate.ts at develop · gustwi...

what's a worker safe way to evaluate simple expression? I have Function style code at https://github.com/gustwindjs/gustwind/blob/develop/utils/evaluate.ts but it seems to be disallowed for security reasons (totally understandable)

Is it normal for the first request to a

Is it normal for the first request to a Worker to have a lower latency (~200ms) but subsequent requests are 2-3x as fast? I just implemented a KV store layer on top of a public API that is hit via XHR requests from various websites and while testing with production network traffic I am actually noticing the response time to be higher than anticipated.

Hey do you have any repo or a

Hey, do you have any repo or a reproduction that you could share?

Workers for Platforms Access

@rita or @alycabral probably ^