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

Does cloudflare-vite work with a Python worker?

I'm trying to use a python backend with an app built with the React quickstart. I thought I could just change the main clause in my wranger.json to main: "worker/entry.py" , I'm getting this error from miniflare: Incorrect type for Promise: the Promise did not resolve to 'Response'. at async ProxyServer.fetch (file:///home/ME/MYAPP/node_modules/miniflare/src/workers/core/proxy.worker.ts:173:11...

Browser rendering /pdf endpoint. How to specify A4 format and margins?

I'm using this https://developers.cloudflare.com/browser-rendering/rest-api/pdf-endpoint/ via the TypeScript SDK. With Puppeteer you can specify formats and margins, but it doesn't seem that these parameters are exposed. ...

Making HTTP requests to IP address from Worker

I am trying to make HTTP requests from my Cloudflare Worker to a backend service that is only available via IP address (no domain name): The same call works over CURL, but from my Worker I get a 1003 Error. - I tried using fetch and get blocked...

Workers for new Pages projects?

I was reading the Cloudflare Pages docs because I'm interested on deploying a SSG website using Cloudflare, but while I was reading about the limits of Cloudflare Pages, I can notice a message saying that Claudflare recommends to use Cloudflare Workers for new projects. Can someone give me insights about this? I'm completely new with Pages and Workers....
No description

API call works locally but fails on PROD

Any reason why this behaviour happens ?

Snippets WASM support

Hi all. I know wasm is supported in workers but was wondering if it’s also supported in snippets, also is the 5ms execution time limit cpu or wal time? Thanks :bibicat:...

Browser Rendreing PDF

Hello , I have issue when I using Browser rendering restfull api , I want to render url to pdf , first requests it works fine , then all request return this error "{"success":false,"errors":[{"message":"Authentication failed","code":10000}]}" the api token is valid and has permission on browser rendering

Browser Rendering rest api Authentication failed

I want to test out Browser Rendering REST API but it will always fail to authenticate ``` curl -X 'POST' 'https://api.cloudflare.com/client/v4/accounts/1234567890/browser-rendering/content' \ -H 'Content-Type: application/json' ...
No description

Worker deploys started failing with "Uncaught Error: No such module "punycode""

Hi all! We're using Workers for Platforms to deploy Hono-based workers and as of a few days ago, the deployment requests started failing with ```js { result: null,...

Automated builds failing in monorepo

I've setup Builds with Github for my worker. The worker is inside a larger repo managed by yarn workspaces. When pushing to Github and triggering the deploy, I'm getting the following error: 16:06:03.142 Initializing build environment... 16:06:09.990 Success: Finished initializing build environment 16:06:10.782 Cloning repository......

Different variables for Staging & Production

Is there a way to seperate variables/secret for staging (preview builds) & production? Also, I cannot seem to tail/query logs for preview builds? See the images below,...
No description

please help me ban or take down workes website that does harm and money fraud activities

https://veda.borko.workers.dev/about/d6ac467b is a fraud copy of www.olx.com to still money from innocent people. OLX is like ebay, please take that worker down 🥲 #workers-help...

Dependencies Build Cache does not seem to work

I have a Worker connected to a repository on Github, using a monorepo structure. The .next/cache build cache is working correctly (build output cache). However, the dependency build cache (.pnpm-store) does not seem to work properly....

Vars cloudflare workers

I'm experiencing an issue where environment variables set via the Cloudflare dashboard are being erased after each deployment. My wrangler.json defines empty vars, but even after populating them in the dashboard, new deployments reset all values to empty. How can I preserve my environment variables between deployments? Even after completely removing the "vars" section from my wrangler config, the problem persists with CI/CD deployments still wiping out all variable values....

Workers Custom Subdomain

Am I correct that it's currently not possible for my workers to receive traffic from a custom subdomain with a DNS outside Cloudflare excluding forwarding traffic from my subdomain to the workers.dev subdomain? More context: - My NS are currently configured to Vercel...

Static asset takes 1 minute to load

Our site is served with an assets-only worker. We have a 7MB wasm asset that is often stuck in "pending" for 1 minute before it starts loading. The domain is on a Pro plan, and we are also on a paid Workers plan. Any idea what might be causing this?
No description

OpenNext on Worker giving back server errors

Hi all, I was running on Workers perfectly. Until today. I got sometimes this error: { "message": "Server failed to respond.", "details": {}...

Are frameworks deployed as a single worker?

I'm trying to understand how frameworks translate into Static Assets. So far, I came to the conclusion that if you have a large project (e.g. Next.js or Astro) with multiple dynamic pages etc., it is going to be consolidated into a single Worker. Is that correct?

Can OpenNextjs use all Node.js backend modules?

Can OpenNextjs use all Node.js backend modules?

`wrangler types` doesn't generate generic `DurableObjectNamespace`

Running wrangler types on my worker project outputs this: ```ts declare namespace Cloudflare { interface Env {...