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

Cloudflare Pages Single-page application (SPA) rendering how to return a 404 for non router pages?

The Pages docs for spa rendinerg say that if there is no 404.html it will default to /index.html which will be handled by my SPA (vue router app) this is great. I have a catch alli in my vue router that displays a 404 vue page if there is not route present, however cloudfalre will return a 200 OK MESSAGE for these, as it doesn't know the page actually doesnt exisit. Hence crawlers too think this page exists.. How can i force cloudflare to return a 404 page for pages that are not in my vue router?...

Paid plan not update in my account

Today i got limit cpu time so i upgrade my account to paid plan but it doesnt update and i cant use support channel because my account is free
No description

Make cloudflare-workers-and-pages previews works with pull request from forks

The app works fine if the Pull Request come from a branch in the same repo but with others just not trigger.

wildcard cname to pages/workers

Hi, I'm trying to set up a wildcard CNAME for my Cloudflare Pages app so that tenant.app.com works for any tenant name. I’ve already added app.name.com as a custom domain in Cloudflare. I tried creating a *.name.com CNAME pointing to both app.name.com and the pages.dev domain, but neither worked....

"Abort due to timeout"

Any idea why my stuff is timing out? I always get the error "Operation was aborted due to timeout"
https://github.com/The-LukeZ/lukez-monitor/blob/master/src/index.ts
I've explicitly reduced the timeout duration to not run into those kind of issues. My one service might have higher latency but not over 3 seconds....

i need containers on my workers

Hi! I need to enable Cloudflare Containers on my account (ID: 8a226b1ec12a423d39d1ab3f7d66ce94). I'm building an AI platform and need containers for sandbox code execution. How can I activate this feature?...

Pages Migration from NextJs to OpenNextJs

I was using Cloudflare Pages for a next js website. Last week the deployment stopped working and I got the message to migrate to open next js. I’ve done that and have the following build config: Build command: sh ./build.sh Build output: .open-next ...

building on worker ci fails, but locally with the same commands works

Hi! I'm deploying a next website and I get a sigkill error that fails the build on ci, however when running opennextjs-cloudflare build and deploy locally everything is fine.

Setting Variables when working with Vite.

I have a tanstack start project and I want to set some variables. I already set some secrets using the wrangler secret cli and it works fine but since there is no option from the CLI to set variables I thought the only way to put them in the wrangler.jsonc file but even then after deployment they dont' show. What am I doing wrong?...
No description

Connecting to my server over VPC or tunnels

Hey I curently run a server that I colocate in a datacenter in Chicago, one of the network upstreams is actually cloudflare. We run some programs on the server that I don't want facing the public internet, however I do want the ability for my worker to access these. This also goes with our database, it runs on the server, I know I can whitelist all of cloudflares IPs, or run it through tunnel, but I would feel much better if I could somehow route it all through a VPC so my worker can access the programs and my database, because even using tunnels it still is technically getting exposed to the public internet....

Wrangler Deploy Failing due to: No such module "node:os"

My wrangler deploys suddenly started failing with the following output: ------------- ✘ [ERROR] A request to the Cloudflare API (/accounts/<accountID>/workers/scripts/<workerName>/versions) failed. ...

Wrangler Automatic resource provisioning not working with vite

I see the news that wrangler now can auto provision resources without specifying resource id in the config file, so I updated wrangler to 4.45.0, and put D1 binding in my wrangler.jsonc ``` "d1_databases": [ { "binding": "DB",...

- Unexpected fields found in top-level field: "bindings"

I'm very new to wrangler. Been sitting the whole evening tryna figure out why I get this error when trying to deploy my worker ⛅️ wrangler 4.45.0 ─────────────────── ▲ [WARNING] Processing wrangler.toml configuration:...

Astro adapter + Static 404 + _routes.json causing billable usage

Hey all, I have a pretty standard Astro + Workers setup as outlined in the documentation. output: server is also set because some pages are dynamic. The adapter is nice because it autogenerates a _routes.json which automatically segregates static assets (non-billable) between dynamic routes (workers invoked, billable)....

Workers _headers not working

https://developers.cloudflare.com/workers/static-assets/headers/#custom-headers Can anyone help me understand best practices for getting this to work? I have a _headers file in my public assets root but the file is being served if I hit it over HTTPS and the rules are being disregarded. I see multiple threads and wondering if there is a workaround. I am trying to set headers on static assets but the rules I set are being disregarded. Is this just a known issue or am I doing something incorrectly? ...

More than 3 deployments

Hi, I use cloudflare pages, I have one project makes beta. builds on main branch and demo. from prod branch. I also want app. which needs to be seperate (different env variables) from demo. that is also on the prod branch. Can't I just make 2 projects? 1 for main and prod branch running beta. and demo. and another project on prod branch running app. I just created 2 projects on one git repo. It said In use already, but I was able to proceed. Are there no side effects?...

auto redeploy pages

I have website in pages, it's auto deployed from github. I want to trigger deployment automatically. I found pages https://developers.cloudflare.com/pages/configuration/deploy-hooks/ but i think they forgot to include in new ui...

What are the limits for email reply workers?

I'm on workers paid and getting exceededCpu after about 11 ms. I've set the CPU time limit to 30,000 ms.

Getting Internal server error of CF pages

is there any maintenence window going? all my cf pages are 500.

CF Worker not getting environment variables

Hi all -- we have a cloudflare worker that we haven't deployed in over a week, and today it started 500ing - logs indicate that it isn't receiving env vars (specifically secrets). We've confirmed that all of the variables appear to be correctly populated, tried rolling back versions, no dice, so this seems like a platform issue. Is anyone else seeing any issues like this?...