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

How Do I redirect all urls to their trailing slash equivalent?

Hi! Anyone know how to take any url and if the pathname doesn't end with a trailing slash, redirect it to the same url with a the slash (with params)? example:...

Pages returning 500 but the logs say 200 OK?

Can someone help me better understand how CF pages works? I've deployed a barebones remix site using the official remix template: https://github.com/remix-run/remix/tree/main/templates/cloudflare-pages Everything seemed to be working fine until i started receiving a 500 Internal Error in a preview environment. When i go to investigate the logs via wrangler cli and the dashboard. I just see 200 OK responses with a logs: [] entry. ...

404 on URLs containing dots without trailing slash

Hello, I have a static website project set up in Pages using Hugo build (it's product documentation). It is working great and i've been very impressed by the power of CF Pages. However, I have one issue that is causing us some problems. I have already posted about this in the Community Forum but nobody has replied. I appreciate that this is perhaps a "niche" requirement, but to me it's a bug that needs fixing. The community forum post is here: https://community.cloudflare.com/t/404-on-urls-containing-dots-without-trailing-slash/599220. To summarise take the following two URLs: - https://doc-6ly.pages.dev/technologies/asp/extensions/com.castsoftware.asp >>> 404...

Debugging SSR Page

What is the best way to debug a 1101 Error and tail says Error: The script will never return a response. For context we are hosting an astro site with SSR as a "sandbox" environment for customers to test CMS changes before deploying (the final page is static). But for some "some minutes - minutes could also last for 20-25 minutes" the page works perfeclty fine and then for a long time there is the 1101 Error and I really cant find a way to debug, etc. Any help / direction would be really appreciated. moved from #Debugging SSR Page...

Is it possible to disable generation of _worker.js.map in sveltekit?

Hello, I'm currently building a website with threlte which is built on top of threejs and integrates it with svelte. Im building the site with @sveltejs/adapter-cloudflare . A big issue I'm facing is that the _worker.js.map generated is ~25.9MB which is above the maximum limit. while the _worker.js file itself is 4MB. Is that file required for functions to work? If not I really couldnt find any flag to turn them off, even vite's sourcemap flag set to false does not make a difference...
No description

Cloudflare pages, Successful deploy, 404 on page

I had a CI setup for a project on cloudflare pages. Successfully deployed, not a single error but the page shows 404 error...

Needs help with tcp/udp

Hi, can I ensure arbitrary tcp/udp communication through cloudflare using cloudflare spectrum pro plan?

Pages Deploys Get Permanently Stuck in a "Queued" State

For months, we've been having an issue where pages deploys get permanently stuck in the "Queued" state. There seems to be a cap of 3 builds on the number of concurrent builds that can be running. If there are already 3 builds running, new builds enter the "Queued" state (as expected). However, the queueing mechanism seems completely broken, and I've never seen a build actually exit the queued state. Has anyone else encountered this issue? We're hoping to switch to cloudflare pages for our production servers, and this is something of a blocker....
No description

Please help me with TCP

Hi, is there any way I can implement TCP communication via Cloudflare proxy? What special factors do I need? Right now I ran nginx on the server, but I can't communicate with the server. What should I do about it?

req.json() parses as [object ReadableStream]

trying to call a worker through service bindings with setupDevBindings, when parsing the body for some weird reason i'm getting back the serialization of the readablestream object ```ts const response = await process.env.WORKER_QUEUE.fetch("http://localhost:8787", { method: "POST",...

I am suddenly facing issue with worker deployment today previously it was working fine.

Below is the deployment issue which i am getting. ``` Run cloudflare/pages-action@1 with:...

Pages Deployment Error

21:34:34.511 Deploying your site to Cloudflare's global network... 21:34:39.334 Uploading... (659/775) 21:35:44.549 /opt/pages/build_tool/js/node_modules/wrangler/wrangler-dist/cli.js:30947 21:35:44.550 throw a; 21:35:44.550 ^...

Deploy remix app

How do I deploy a built remix app to cloudflare pages? I know to create an app for pages I follow this https://developers.cloudflare.com/pages/framework-guides/deploy-a-remix-site/, but for an app that was built what do I need to add for it to run under Cloudflare pages?
I have tried npm install cloudflare@latest , I created an app using the mentioned guide to compare the files, and add the @remix-run/cloudflare dependencies along with updating the remix.config.js, adding the server.ts, etc... and I always ran npm install after adding these, but nothing seems to work. I saw the old post here, but when creating a remix app it doesn't ask for deployment target and I have my node as 18.0.0....

Need help with a mobile help

Hi, I am developing a mobile app for a puzzle quiz and need two things for it - an xml file and a database which can store quizzes and solutions. I am checking out the paid plan of workers and pages and while they mention pricing for database read and write, there is no mention of serving a xml file hosted on pages (as a static file with some instructions in 10 languages). My app will read over 20 million rows daily which means over 600 million rows a month. Also it will require the XML file from the hosted site on pages. So the $5 plan is ok for the database storage but nothing is mentioned about requests for the xml file (maybe 2-3 text files too.)...

how can i query D1 in cloudflare without deploy?

im quering D1 database with Functions but it seems query in local.. how can i query on remote without deploy? i started dev server with 'npm run pages:dev'...
No description

Stuck at 100 cloudflare pages, trying to get to 1000 please help

We are using cloudflare pages to move our 1000 websites to new hosting, but we are stuck at 100 websites. I have put in multiple requests to increase page limit but we cant get an answer or help. Is there anyone from CF who can help directly? account id: 3c4bc505d9347dcf08ecfdf67179d0b0...

Pages project (with functions) written in rust

I would like to continuing using rust in the front-end aspect of my project (using workers and DO already via workers-rs), and I am interested in using Pages, with Functions. Does anyone know how much can be done using any rust-based web framework, or workers-rs to write functions, etc? I'm just trying to understand any "rustiness" available in Pages with Functions before getting started, as otherwise I might go with a different option (e.g. a rust web project deployed elsewhere)....

wrangler or C3

I want to start my first Pages project. The guide here:; https://developers.cloudflare.com/pages/get-started/guide/ says...

Pages.dev domain isn't working, but individual build links work

Hello, I am running into a problem where the pages.dev domain gives the "Nothing is here yet" error. The domain is called https://mixstory.pages.dev. Bizarrely, https://main.mixstory.pages.dev does work, as do the specific deployments such as https://6ebe3fb0.mixstory.pages.dev/ ...