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

I used Astro framework to deploy example.com to cloudflare pages. How do I add the www subdomain

I can access example.com through the browser but www.example.com does not work. I tried adding a CNAME.txt file to the root of the Astro project directory containing the following lines: ;; CNAME Records example.com. 1 IN CNAME example.pages.dev. blog.example.com. 1 IN CNAME example.com. www.example.com. 1 IN CNAME example.com....
No description

Caching documents with cache headers in Remix

In the loader function, we have access to Caches API, so we can use it to cache loader responses, which works fine. However, document-level caching with the headers function does not work. Is there a way to enable document-level caching in Remix when deployed on CF Pages?...

How to do binding using nextjs ?

I tried using --kv but nextjs won't recognize the process.env, it returns undefined. Also how can add remote binding KV on local nextjs ?

How to change the subdomain of the site after setting up

I want to change the subdomain after deploying the page now its set as the repo name I want to customise it.

Nodejs_compat in Page Functions

Howdy all, I'm trying to deploy TinaCMS (https://github.com/tinacms/tinacms) self-hosted (https://tina.io/docs/reference/self-hosted/database-adapter/overview/) on Pages using Workers KV. | I set up a functions/graphql.ts to handle a graphql endpoint that imports some nodejs specific libraries from Tina. The deployments failed for it. ...

Nuxt.js, Pnpm monorepo and Cloudflare pages

I'm trying to deploy a monorepo to Cloudflare pages. (Moving from Netlify) I changed the config with Nitro, so now the build command is this one: ```JSON...

Scheduled deployments with pages?

Hey everyone, I'm wanting to update my 1 page website everyday at the same time. So far the best way I have thought of doing that is just re-deploying it. I want to somehow schedule these deploys. Is this possible at all in cloudflare? For instance, I would upload 7 deploys at the start of the week and schedule each one. The things that need to change are five pictures and one word buried in the code. Thanks for your help....

update pages site from github

I've made a vue project and published to pages using the C3 method. now i've made changes to the vue project and they run just fine locally and are checked in. however the pages site is completely blank when i load it and i can't find any place to see build logs or configure build steps. any thoughts?

Nuxt Project Wont Publish

Howdy, ive got a nuxt 2.17 project that works fine locally, running node 18.18.2 (which I have as a CF node env) - but I just cant get past this issue ```01:09:54.512 ➤ YN0002: │ ss-quiz@workspace:. doesn't provide vue-template-compiler (p7ea12), requested by @vue/test-utils 01:09:54.512 ➤ YN0002: │ ss-quiz@workspace:. doesn't provide vuex (p4600f), requested by vuex-module-decorators 01:09:54.512 ➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code 01:09:54.514 ➤ YN0000: └ Completed in 10s 575ms...

How do I get service binding to work locally

I have a service binding from my web app (remix) to a API worker. I created at wrangler.toml file and added the binding in the web app and it was working. However since upgrading the wrangler package it seems to have stoped working,

Renamed my linked GitHub repo... can I update the repo name in Pages?

I renamed the GitHub repository that I have linked to a Pages/Functions site... it's still working fine as GitHub does redirects on their side... however, can I update my existing pages/functions site to use the new GitHub repo URL without deleting and recreating the site on Pages?

Cloudflare is not cashing my client's wordpress website. Please someone help me.

I've already tried several things, but I can't figure out why Cloudflare isn't chashing the site. https://portalsulamericaodonto.com.br/ When I didn't have Cloudflare, the pagespeed was at 80 and after the configuration I made as shown in the images below, the score remains the same. Please someone help me, I really need to resolve this....
No description

Bundle remote assets at build time

Hello, if i have my code on Github and image assets on a cdn, can i bundle those assets at build time, downloading them from the cdn to keep with my code files on Cloudflare Pages?

Is it possible to change Google's search results look? Highlighted Stuff I Would like to change.

This website is generated using Hugo The subdomain of the cloudfare page is used for deployment. On the Google Cloud Console, I verified the website's authenticity However, the search results weren't what I expected...
No description

Add GitHub repo to exisiting CF Pages project

I created a CF pages project using assest upload. Can I chagnge it to use github now?

Cloudflare serving index.html on every path

Hi! I have a cloudflare pages deployment that has some static pages, but is mostly an SPA. When I try to access for example a .xml file in the site, it works. But when I try to access a .html file, it just sends index.html

Custom Domain Error

I'm trying to move a pages deployment to a new domain, I wasn't the original developer who implemented the exisiting pages, but when I try to add the new domains, I get an Inactive (Error) instantly on the status, what are the debugging steps? The existing custom domains also have SSL enabled where the new ones dont. https://rusty-fe.pages.dev/...

Custom domain add not recognizing that subdomain is already on cloudflare

I have cf.tangia.co registered with cloudflare name servers, I'm guessing it's based on root domain only but it would be nice if this supported subdomains too because then I could use branch-level routing
No description

Worker exceeded resource limits

Heya, I'm getting an intermittent Error 1102. I'm using pages to host a remix app. In the web console it is marking the errors as Exceeded CPU Limits but when the error happens pages function returns 503 immediately. ...

all my stuff fam is like not working

aightt so like my pages.dev stuff eg - https://inactivedomain.pages.dev aint working its just throwing some Worker threw exception stuff even tho its just static html acc id is 262b632a121ae65fd0e19affb890533f