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

functions not found

đź‘‹ I hope you are doing great! I've searched far and wide and tried a lot of different to tweaks to solve this already, but hopefully you have an easy answer. I've made a pages project with my account - called fc-static-site. It is deployed via GitHub connection, and no matter what I do the /functions directory doesn't seem to get detected. This means the functions aren't deployed. Relevant attachments....

Cannot see "Build Configuration" option for Pages project on dashboard

According to the documentation and this support ticket, I should be able to change the "Build Configuration" for my Pages project, like build command, etc. But there is no option like that in my Settings. I have spent an hour trying to find this option to no avail...

Point production branch to somewhere else than mydomain.pages.dev

Let's say I have bought www.mydomain.com and I use mydomain as cloudflare project. Now, by default if I push to prod this will land at mydomain.pages.dev; But what I want is something obscure like ABCDEFGH.mydomain.pages.dev as a subdomain basically and point the production branch to there, is that possible? mydomain.pages.dev should be empty and not be used at all

Github connection error

Whenever I enter Workers & Pages I get this error. I tried multiple times going to Github Application settings and revoking all rights to Cloudflare then connect Github back, however it still keeps throwing this error. I'm just trying to deploy the same repo that I had posted before, however nothing I select from my repos works....

Error when trying to build project in Cloudflare

So I'm having the following error when trying to build the project in cloudflare: ``` error during build: 17:19:52.767 [vite]: Rollup failed to resolve import "zod" from "/opt/buildhome/repo/api/shared/expenses.types.ts"....

Error when use git deploy nextjs 15 cloudflare page

Nodejs need ^18.18.0 ^19.8.0 >= 20.0.0 13:20:36.362 â–˛ > next build 13:20:36.523 â–˛ You are using Node.js 18.17.1. For Next.js, Node.js version "^18.18.0 ^19.8.0 >= 20.0.0" is required....

Static assets not updating in production despite successful deployment

I'm experiencing an issue with static assets not updating on my Cloudflare Pages production domain, while they work correctly on the development domain. Setup: - Using Vite as the build tool - Assets stored in the public folder ...

Site not loading for some users

My site hosted in Cloudflare Pages is not loading for some users. For me and most is working fine. Where should I check to troubleshoot this? What could be the problem.

Difficulty getting started with functions/_middleware.js

We have a nuxt app running on cloudflare pages. I'm trying to get some middleware running following the basic instructions fond tin the docs. For now, I'm just looking for confirmation that the middleware runs- can log something we can pickup in a wrangler log trail, add a header to a requst, anything. Evenutally, I'd want to use the middleware to connect us to some bug tracking solution. However, I just CAN'T seem to get functions/_middleware.js to do anything. I've tried the example provided in the docs plus a few logging statements. I've written some custom code to add headers, then to raise errors, then modify the body of html responses- nothing works, and I have zero visibility into why, both locally with wrangler or on a production-like feature app. Our nuxt config sets the nitro preset to 'cloudflare-pages', that handles all the cloudflare settings that would normally go into wrangler.toml for us- we have no wrangler.toml in the root of our project. Its my understanding though, that there is no additional config needed to run functions....

CORS problem

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015. (Reason: CORS request did not succeed). Status code: (null). None of the “sha512” hashes in the integrity attribute match the content of the subresource. The computed hash is “z4PhNX7vuL3xVChQ1m2AB9Yg5AULVxXcg/SpIdNs6c5H0NE8XYXysP+DGNKHfuwvY7kxvUdBeoGlODJ6+SfaPg==”. What does THIS mean/imply?...

Error 1014 and instability

Hello, i've been noticing some instabilities today regarding my pages websites, they seem to have network errors and sometimes requests get blocked. While doing some tests i noticed that i got a somewhat scary error 1014 (left a picture) so i'm wondering what the issue might be. (all the CNAME are owned by me so i'm not sure why i'm getting this error) Pages url: https://asm-editor.pages.dev/...

"Add an A, AAAA, or CNAME record for your root domain so that my-site.com will resolve."

When I try to go to my website, https://my-site.com, it gives me "DNS_PROBE_FINISHED_NXDOMAIN". This is odd, because it was working before I added a subdomain called "games". I want my root domain to show the same page that's like "my-site.pages.dev"...

How to redirect to the specific page if the route was not found?

Hey folksđź‘‹ I'm using static HTML files and deploying them from a Git repo. If a user opens non-existent pages, I want to redirect them to 404.html. How can I do this? I haven't found any mention of this in the documentation.

Delete a pages project

It returns 524, indicating a timeout / problem with my server. But there is no server, just a pages project.

Querying pages functions logs

Hi đź‘‹ I'm using SvelteKit with Cloudflare Pages. I'm using Sentry (via toucan js) for error handling/alerting. I'd like to be able to view and query pages logs, not just tail live....

Upload Cloudfare Pages from Google Drive Folder using n8n worflows. How can I do it?

Hi everyone, I'm looking to automate the deployment of a website to Cloudflare Pages using files stored in a Google Drive folder. I work with n8n. Has anyone set up a similar workflow, and if so, could you share some tips or a step-by-step guide on how to achieve this? Any advice on best practices or potential pitfalls would be greatly appreciated. Thanks!...

Nuxt deployment 1101: "Script will never generate a response"

I have attempted to deploy a Nuxt SSR application using cloudflare and although the build is successful and local testing works, the deployed page on cloudflare produces a 1101 error. I did a trace log on the page which produced the attached response.

Next Pages 1101 Error Logs

I have recently just published a Page for a Nuxt SSR application. The build is successful and deploys. When I access the page, I get the dreaded 1101 error page. This page does not show my details, as I expected, but I realize there are no runtime logs accessible to see what errors are occuring. How is one supposed to debug these 1101's without logs or any feedback as to what's happening under the hood?...

Pages usage multiple accounts

I'm currently evaluating whether and how to use Cloudflare Pages to host our customers websites. To that point I'm not sure how Cloudflare handles its limits. For example, am I allowed to create a separate account per customer/domain? That would effectively "circumvent" limits imposed per account and might break the Cloudflare Self-Serve Subscription Agreement, as I understand it. But I could not find a definitive answer....