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

I am sitting here reading about

I am sitting here reading about JavaScript-native RPC in workers... https://blog.cloudflare.com/javascript-native-rpc Do I understand this correctly: ...

is it possible to send transactional

is it possible to send transactional emails in an idempotent fashion from an email worker?

> So i am expecting for the same request

So i am expecting for the same request with in my window of an hr, the 2nd fetch response would be taken from the cache not go to make another http request correct ?
Cache by default is per colo/cf dc, and some Cloudflare Points of Presence even have multiple colos, so you might be routed to a different one/different visitors will certainly be, and get MISS's, plus TTL is just a max and CF may evict it far before then based on access frequency.
if this is the case why for every fetch request i do the worker gets called and returns the response?
The worker will always be invocation/run on every request, even if using cache
How can i validate that this is from the cache or not?...

Langchain Support on Cloudflare Workers

Hi! How can we setup llangchain or something siimilar on cloudflare

Wrong link to triggers in DNS settings to bound worker triggers

I think the part where you assign domain names to a worker has disappeared from the Cloudflare Dashboard, should be at: https://dash.cloudflare.com/XXXX/workers/services/view/WORKERNAME/production/triggers right? But it's gone? Any tips on how to bind (sub)-domains to workers now?

Have a fun one for the Workers team...

Have a fun one for the Workers team... itty-router is staged to release as v5, but we're running into an issue with the direct export signature. Background: An itty Router instance is a Proxy, with a fetch method. This matches the expected { fetch } signature that Cloudflare or Bun expect. However, CF is having issues with the Proxy (Bun is fine with it, for comparison). ...

Workers as your fallback origin · Cloudf...

Sounds like you want CF for SaaS: https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/, https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/start/advanced-settings/worker-as-origin/ You have to specifically setup each Customer Domain though, can do it through the API though. For example, all Shopify Custom Domains use CF For SaaS...

```[wrangler:err] Error: No fetch

[wrangler:err] Error: No fetch handler responded and no upstream to proxy to specified.
[wrangler:err] Error: No fetch handler responded and no upstream to proxy to specified.
😭

Hey I wanted to setup billing

Hey I wanted to setup billing notifications when my workers hit a limit - number of requests or CPU time, but the billable usage notifications only allow me to select the old pricing (unbound/bundled) requests and I use the standard pricing. Is there a way to setup notifications for standard?
No description

GitHub - devondragon/workers-users: Clou...

I'm building something like this for a few personal projects. I am in the process of improving the docs and adding docs around setting up outbound email for forgot password flows, etc... but it works for all the things you mentioned above. Note that the password hashing is using salted SHA-256 instead of something like bcrypt as you don't really want long CPU burns on Workers. If this is a concern you can use bcrypt or an external hashing service or whatever. - https://github.com/devondragon/w...

someone answer?

hey everyone i am wondering that once you create/ set up the website on cloudflare is there a possible way for you to like have a html source and you can out html in that source and it will implement to your website? thanks

but its running on ec2 instace now i

but its running on ec2 instace now i wanna make upload fn to be run on serverless and i have no idea whats wrangler

Cache key

when doing fetch, one of the enterprise features is to cache the fetch by a specific cacheKey, although for non-enterprise customers, what is the cache key instead? the URL ? or the request object as a whole?

Cloudflare Worker is waiting for the

Cloudflare Worker is waiting for the whole response before streaming the output to the client, which defeats the entire point of streaming. I don't know what I am doing wrong. ```ts router.post("/v1/streaming", async (request, { OPENAI_API }) => { let { readable, writable } = new TransformStream(); const client = new ChatOpenAI({...

Hey! I would like to get some feedback.

Hey! I would like to get some feedback. I have a new domain example.com, and I want a few workers to serve the content of my sites: - shop.example.com -> Remix app on worker - dashboard.example.com -> Remix app on worker - example.com/auth -> Remix app on worker...

Mailchannels X MailFrom / From / Return-Path

You're more than welcome to ping me, and let me know what you're (eventually) finding out with them. 🙂

Hi, is there any way to request

Hi, is there any way to request verification of email from with a Worker eg API endpoint ?

Yes, you can write it locally, but afaik

Yes, you can write it locally, but afaik it can't actually be tested(unless you pass in the args yourself)