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

Inactive (Error) on Custom Domains

I'm seeing several projects report the status of domains as Inactive (error) yet they are resolving. I see lots of other reports but no way to resolve, is this still ongoing?
No description

Cloudflare Deployment Container Image?

I am building a Sveltekit App that is being auto deployed when I push to GitHub. I'm wanting to setup my local testing environment to use the same image that Cloudflare is using to deploy me app. I am also going to create a separate container for service workers only and wanted to get that image also. Thanks...

My custom domain don't show and it says I deleted it???

I never deleted the domain we set up and I got an email saying I deleted it?? Our website is still working fine (for now) but the domain rarefrostbites.net can't see on the Websites and Domain Registration tab. What's happening?? Fix this! 😭...

Can't get service binding to work when developing locally

I have a page function that has a service binding to another worker (token-service-dev). The binding works fine when page function is deployed, but I can't get it work when developing the page function locally. It looks like it works when runnning the project locally, but the service is always undefined. Is it possible to locally develop a page function and be connected to a live service? wrangler pages dev -- npx vite --host ...

Bun workspaces

I'm encountering in issue in my monorepo (turborepo) where when I try to build my vite/react site, it doesn't seem to use bun and therefore crashes when it encounters bun workspaces, how can I fix this?
No description

Error: Failed to publish your Function. Got error: Error 8000057: Rules in `_routes.json` are over t

Error: Failed to publish your Function. Got error: Error 8000057: Rules in _routes.json are over the 100 rule limit. Refer to https://cfl.re/3FsE4aF. Using Astro, everything builds correctly and the site functions but the deployment says failed....

Homepage loses styling

can somebody help me. New to cloudflare. using wordpress and breakdance builder with litespeed cache and perfmatters. Got the pro sub. My homepage brightbrands.online is the only page that loses styling. i have tried switching off css and js optimasations. But to no avail. #styling...

when i click save and deploy my code dus not actualy safe

Hello, I am new to using Cloudflare Workers and have been using Pages for a few months now. I am trying to create a very basic authentication system for my page. However, when I click deploy on Cloudflare, the button just turns blue, and I don't receive any error codes or feedback. I believe I might be doing something wrong, so any help or guidance would be greatly appreciated. Thank you for your assistance....
No description

Where to place functions with custom build configuration? / Static Forms Plugin not working

Hey, I'm trying to use the static forms plugin (https://developers.cloudflare.com/pages/functions/plugins/static-forms/) and in theory I just need to add a /functions/_middleware.ts file, but I'm not sure where they should be. I have the attached build configuration, but should I create the functions directory in /, /frontend, or /frontend/build? In any case, trying it locally with npx wrangler pages dev build (running in /frontend and after npm run building manually) seems to find the _middleware.ts file in /frontend/functions because it fails to build if I don't have the plugin npm installed. However, even though it is supposedly building the function, it doesn't really do anything - when I visit the website, the form still has data-static-form-name and its method/action attributes has not been overwritten....
No description

WebSocket Issue

Hello, I have a PHP socket server that manages a messaging system. The security of my site is handled by Cloudflare, and a tunnel has been created to connect the base server to the final site. However, I’m encountering an issue trying to pass my socket through this tunnel. I’m not sure if this is the correct approach, but I added a public hostname, allowing me to add a subdomain to my site to internally connect my socket to the right port via a client-usable URL. When I connect with JavaScript, the connection is established, but my socket doesn’t echo anything, even though it should notify me when someone connects. When I stop the PHP program, the socket closes on the client side, indicating that the connection seems to be established nonetheless. I had tested my socket locally on a MAMP, and it worked perfectly. ...

[Question] How are limits decided if I build the pages myself

Basically I want to understand how are the limits decided if I build the pages locally or on some CI server and the just push the artifacts to cloudflare to deploy? The limits (https://developers.cloudflare.com/pages/platform/limits/) states that "Each time you push new code to your Git repository, Pages will build and deploy your site. You can build up to 500 times per month on the Free plan." ...

Pages Bundler configuration

I'm trying to serve some static files from Remix-based pages app. Specifically a SVG file. When building my page with wrangler pages dev, I encounter a build error: ✘ [ERROR] 1 error(s) and 0 warning(s) when compiling Worker....

Error 1101 Worker threw exception

Is there any issue with Cloudflare Pages & Workers right now? Just make some changes and deploy to preview branch but getting error 1101. Then I revert the codebase to exactly the same as production branch, which is running without issue. But deployment on preview always return error 1101....

My App's API uses Let's encrypt

I know the upcoming change will only affect older devices, but I am curious... how will this change affect older android phones?

Worker routes for pages

Is anyone aware of a way to setup worker routes for pages? Id like to have a single domain pointing to multiple pages applications based on path. I see worker routes allow you to set the kind of thing id need, like go to X-application based on route being /Y/*... but only traditional workers display in the dropdown, and not my pages applications. as pages are workers under the hood, is there a way to do this?

exclude folder from deployment

Hi, I'm deploying from git and it works fine, however, I have a folder containing assets that should be in git but not deployed. Is there a way to restrict what assets are deployed when using a git->npm build->page workflow?...

Pages - Error: Failed to publish assets

My pages deployment is failing deployment ID: a44a6e28-c0b1-4ed5-ad90-e1eadda7e007 account ID: bdccf24372c9116edbded3ff475b4e23...

remix presets are outdated

hi. the build output directory seems to be outdate. I think vite's remix uses ./build/client...
No description

Custom domain with Proxy = "The page isn’t redirecting properly"

When using "Set up custom domain" it automatically creates a record in Cloudflare DNS, and it enables Cloudflare Proxy on that record. This seems like a good idea, and is an expected result. But it doesn't work. It leads to "The page isn’t redirecting properly". And I really don't understand why. But disabling Proxy makes it work....