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

Caching rsc routes in Next.js

I created a caching rule to cache the _rsc= requests which seems to cache fine, but when I click on any of the <Link href on the application, it reload the entire app instead the SPA as it was working without caching or when I open the application on preview mode using pages.dev domain. See seems like the issue is caused by the caching. Any suggestion? Video - ...
No description

Pages functions advanced mode help

I want to merge my worker with a pages application using functions. I've read the docs and i'm still not sure how to structure the app/ how it works. So _workers.ts needs to be compiled into dist? How do I set this up using the configs, I have three. tsconfig.json, tsconfig.node.json and tsconfig.app.json. I had a go myself but when building I get " error TS6200: Definitions of the following identifiers conflict with those in another file"...
No description

Crisp Chat not working on CF, but works on netlify.

Hey, the crisp chat icon just doesnnt appear at all when deploying on cloudflare pages. Deployed same website on netlify perfectly and it works. Any idea whats wrong?

No route for that URI when try to enable Access policy

Hi, i'm trying to disable .pages.dev domain via enabling access policy, but getting error when try to enable em
No description

How to read environment variable from CF Dashboard in Astro?

I tried to read my env variables using const supabaseUrl = import.meta.env.SUPABASE_URL; and it doesn't work. In https://docs.astro.build/en/guides/integrations-guide/cloudflare/#cloudflare-runtime, it shows const { env } = Astro.locals.runtime;. However, I have a compiler error that Astro is not defined. How can I import this Astro variable?...

can't re-link github repo to pages

i moved my repo over to a github org and i can't seem to reconnect it to the new owner i already revoked my github connection to cloudflare but it seems it has made things worse this is descuentito-3jy.pages.dev -- 52d9058a56843815404e4a6a0e6162da...
No description

is proxied domain IP resolved proximity of user location?

I am wonder if a domain that is proxied by cloudflare, its cloudflare assigned IP resolved proximity of user location? for example: if a user in north America sees domain IP proximity of US location and a European user sees domain IP proximity of Europe Location?

Issues with environment variables when deploying a pages project in GitHub/Gitea action

Heya, I'm using a self-hosted Gitea instance as VCS, which has a GitHub Actions compatible worker environment. What I'm trying to deploy to Cloudflare Pages is a Nuxt 3 project. I have some problems figuring out how to deploy the environment variables and secrets. When running pnpm run build && wrangler pages deploy locally in my dev environment it deploys all fine, but not when I do that in my deploy action....

Nuxt + AWS SDK + TS transpilation issue

I am using AWS JS SDK to get stuff from S3 via server on an API call. Using the client send method produces a [nuxt] [request error] [unhandled] [500] t is not a function. The reason I believe this to be a Cloudflare issue is because creating the application locally via nuxt build and nuxt preview does not produce the same issue. However, whenever I use wrangler or deploy to pages, the error occurs. The trouble code; ```ts const command = new GetObjectCommand({...

next-on-pages question on next/dynamic

The project in question is private, so I can't share the link, but I'm curious whether there's any resources on troubleshooting a Next.js dynamic module. My module is functioning normally when run through next dev, but fails with the error ReferenceError: async__chunk_8335 is not defined when run on either the preview command or when deployed to Cloudflare Pages.

Previously deployed index.html still gets served

Hey all, I had my page running as a react app with a index.html. I now moved to remix with a server side rendering approach. Now, if i go to https://portcity-ai.com/ I still get served the old index.html. If I go to a path https://portcity-ai.com/services i get the new result from the route handler....

Corepack Error

Was there a workaround for the corepack issue that plagues the whole javascript community? I can't deploy any CloudFlare pages using PNPM because of the Corepack x NPM Key Rotation.

unable to get access to pages from russia

Hello. I want to place my application for users from Russia, but, unfortunately, I get the problem of the inaccessibility of the service. Please tell me what can be done? Through my domain, too, does not work. Is there any ways to get around this restriction?
No description

environmental variables toml and dashboard

I have quite a few non-secret text variables and i don't want enter these into the dahsboard. So I thought if I put them under vars as suggested in the docs name = "my-worker-dev" [vars] API_HOST = "example.com"...

An unknown error occurred. Contact your account team or Cloudflare support: https://cfl.re/3WgEyrH.

When I want to deploy my project to Cloudflare pages from Github repository it shown error on configure section, I have turned of my VPN and make the repository as public but it doesn't work. Any solution?
No description

github connection 404

when i click connect to github, it leads to a 404 page not found page
No description

Pages limit increase

I would like to know if this explanation is enough to increase the limit I'm building a large-scale static web application that exceeds Cloudflare Pages' 60K file limit and 100MB file size limit. This includes thousands of assets, pre-generated pages, and large media files, making the current limits restrictive. Increasing them would improve scalability, performance, and developer efficiency, eliminating the need for complex workarounds like splitting deployments or excessive asset optimization. ...

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....
No description

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...
No description