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

Disable Pages domain

Hello there everyone, I've a site hosted on Cloudflare pages and I want to disable access to it through the pages domain. How can I do that?

Remix, Cloudflare Pages and Context/Env variables

I am working on a project with Remix and Cloudflare Pages. So far everything works fine but I can't figure out how I access context or environment variables in loader functions on Cloudflare Functions (server side). For example I want to access KV in a Cloudflare function that is called from a loader function in Remix. Everything I have tried (context.env.KV_NAME or env.KV_NAME) doesn't work in my server.ts file. Does anyone know how I access the context or env in a Cloudflare Function in a Remi...

Create Pages like Workers

We need a way to create a Pages application without connecting a git repo or creating an template repo. Workers does this today. See the attached photos...
No description

Where do I create my Durable Object?

hey guys! quick question. Am I obligated to register a Durable Object through a Worker? because I'm using Cloudflare Pages so maybe there is a different API for this. Otherwise I'm thinking on just creating a Worker that is going to proxy to the Durable Object

Account issues

Hi I really need help to get this pages site taken down. My account was accidentally deleted and i need a certain pages site to be taken down. Can anyone help pls...

Tailing Pages Functions

Hi 👋 ! I am trying to tail deployments using both the dashboard and wrangler pages deployment tail commands but they aren't working. Starting any of them makes the entire website inaccessible. If someone visits the deployment, they see the Error 1101 Worker threw exception page. And the 1101 error page doesn't go away even after disabling the tails. Cloudflare doesn't output any useful error also, the error is simply Error: internal error. I need to tail the deployments to debug an issue but this bug isn't letting me use the tailing functionality....

Missing json+oembed when using a custom domain.

in my <head>, i have this code to return a discord embed on the site being linked. ```
<link rel="stylesheet" href="stylish.css"> <meta content="Exon's website - info and examples" property="og:title"> ...
No description

Etag missing

For browser caching, Pages always sends Etag headers for 200 OK responses
https://developers.cloudflare.com/pages/platform/serving-pages/#caching-and-performance Qwik site on Pages is running on a custom domain, behind Access and no ETag is present....
No description

GitHub can't auto build without the pages build environment

Hey there is an option to use my environment variable by defaults for all git pull requests into cloudflare pages? Now dependabot fails to update the code into cloudflare pages because I have an environment variable on my cloudflare pages project that specifies the node version....

Pages

Someone acidentally deleted my account and a pages site on it is still active. I need this pages site to be taken down. Can anyone help me please....

How to use R2 from NuxtJS using Pages?

Hey guys, I am trying to run NuxtJS project on Pages with server side rendering. I want to get specific JSON file from R2 and use it in order to render my page. Is it possible? I tried running my NuxtJS project as Worker, but I couldn't make it work (still very new in Workers & Pages)...

Edit index file (or any other file after upload)

halterbaik.pages.dev this is my page. This is my trial page because my first time using it. I want to know can i edit the index file? Because i need to change the google verification site and the canonical of the page. THanks

Warning(s) when compiling Worker

Hey, trying to deploy my nuxt 3 app to cf pages. The build goes through but in the upload step cloudflare logs : â–² [WARNING] 2 warning(s) when compiling Worker. The build finishes successfully but accessing the pages preview url results in a 404. Is there any way for me to check what those warnings are that have been found? I'm hoping to find the reason for the 404 there but nothing is logged to the build console...

Converting uploaded pages to autobuilt pages

Is there anyway (short of just deleting the page and remakeing it) to add a git repo to it?

Connecting github to pages not working

I tried to create new application by connecting a new repo... This worked in the past but when clicking on link in the text "If your repository is not shown, configure repository access for the Cloudflare Pages app on GitHub." it gives 404 page on github.
No description

Cloudflare Pages custom domain is currently unusable with `Inactive (Error)`

I am a long-time user of Cloudflare Pages and have never experienced this issue before. The domain in question, yayo.fund, has been added to Cloudflare DNS and appears to be configured properly there. However, adding the domain to Pages consistently gets stuck in this error state. This seems to be the same issue experienced here https://canary.discord.com/channels/595317990191398933/1155995690078572605/1155995690078572605. I have also opened a support ticket #3015196 for this issue but would appreciate any help!...
No description

Possible to detect if pages is running locally or in production?

As the title says — I'm just running a normal pages project and trying to access some type of environment variable to detect if I'm running locally or am in the current deployment. Ideally I'd like to do this via an envirnment variable, but it's unclear to me if you can access these in pages without needing to be inside a CF function

Unable to delete page due to custom domain that doesn't exist

page: https://nextgen-9mn.pages.dev/ deployment id: 8b347ac4-4f83-40cd-a9ff-da76d6d673a8 account id: ff75da3b7503006f3a8c3674e62265b0 error: To delete your project, you must first delete all custom domains associated with your project. (Code: 8000028) I've been trying to delete this since the outage, can someone just destroy all of my pages resources so I can start again please....

Deleted page appears cached

Hello! We have deleted a page on our site, but it appears to still be cached in pages. Pages: https://owid.pages.dev/communications-outreach-manager-q4-2023 (removed, 404) Site: https://ourworldindata.org/communications-outreach-manager-q4-2023 (cached, remains) ...