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

wrangler custom domain

Hi, I'm having issues with using wrangler to publish pages with custom domain, as per config logs, most of the toml configs arent supported on wrangler, currently i'm stuck doing it via UI. Anyone have an idea?...

Pages pricing

If I use Jenkins to build and deploy under free plan, will I be subjected to 500 builds per month ? Or there will be no limit ? Bcs I'm using Jenkins ?

"node:os" Error with Astro site using BetterAuth

I am trying to deploy my Astro template which uses Better Auth. The preview deployment succeeds but when I visit the preview page I am getting a 500 error. From the real-time logs:
[ERROR] Error: No such module "node:os". imported from "chunks/auth_DvzfQAcs.mjs"
https://astro-starter-arr.pages.dev/...

Has anyone done static content generation + SSR in Cloudflare Pages

I have an app where I want to create a blog with dynamic language routing using SCG by precomipiling the static pages and their translations. I am getting errors configuring it "invalid prerender config" and it talks about how to setup static cloudflare pages which is a completely different app setup. Wondering how to mix the two into a single app?...

Does Cloudflare Pages Advanced Mode (Functions) access _worker.js folder?

Advanced mode allows you to develop your Pages Functions with a _worker.js file rather than the /functions directory. https://developers.cloudflare.com/pages/functions/advanced-mode/
Is a _worker.js folder with index.js is accessible?...

New pages site missing DNS entry

Cannot navigate to the site as there is no entry. ``` ❯ dig lancer-briefings-nm9.pages.dev ; <<>> DiG 9.20.8 <<>> lancer-briefings-nm9.pages.dev...

Open Graph Images on Demand in a Next.js Pages App

Hi everyone, I'm trying to find a reliable way to generate Open Graph images on demand in my Pages application, which is based on Next.js througj OpenNext. I attempted to use @cloudflare/pages-plugin-vercel-og, but I couldn't get my project to build. ...

Cloudflare Pages Git Integration Issue

I'm experiencing an issue with Cloudflare Pages not properly installing on my Git account. When trying to deploy my website, I get the following error message: Cloudflare Pages is not properly installed on your Git account Steps I've Already Taken I've followed the official documentation at Git integration | Cloudflare Pages docs...

Styles.css looking different on custom domain than on local and on the .pages.dev domain

I updated my site and my text that needs to be usually white appears white only on the .pages.dev and local when i use my custom domain its gray

Cloudflare pages on subdomains not automatically set up in web analytics

domain: pepper.fyi I’ve hosted a site on Cloudflare pages, and by default, it has a pages.dev domain. I’ve added my own custom domain (and subdomain, boids-react.pepper.fyi), but in web analytics, only the pepper.fyi shows up in analytics. boids-react.pepper.fyi doesn’t show up. In the DNS entry list, there’s a CNAME entry that maps boids-react to boids-react.pages.dev, and it’s proxied. I’ve even added a JS snippet since CF tells me that it doesn’t belong to any hostnames under my account, but it still shows 0 views even if i accessed the site multiple times using the boids-react.pepper.fyi URL with different devices....

Unable to Deploy Unless using CLI Deploy

Hello. I'm able to run and even deploy my app when building locally (e.g. npx wrangler pages . and npx wrangler pages deploy .). However, the automatic deploys runs into an error after build and during deploy due to an error from one of the NPM node_modules. I think it's due to process.stderr being accessed improperly or being polyfilled improperly by unenv. However, I don't see a way to access the build artifacts that cloudflare creates and so cannot debug this issue. Any help would be appreciated. Thank you. Removed the other details as I've figured out a workaround. See first response. Error:...

Fetch inside a worker fails if the worker is invoked via a Pages function binding

hi folks 👋 I have a problem with a worker that's invoked from a Pages function via bindings, and I'd appreciate some help. The worker is pretty simple, it uses fetch to download a JSON file, and then it responds with some data. When in call the worker directly using curl, it works as expected. However, when I call it using a Service binging from a Pages function, I get an error because the JSON file is invalid: ```...

Function not updating

I deployed a static site to Pages and am now trying to use Functions to authenticate Decap CMS with Gitlab OAuth. I placed the OAuth handling functions in functions/auth. After deploying them the first time there were some things that needed fixing, but it seems like only the first version of the functions is now used, although every new build log states: ``` 20:18:42.379 Found Functions directory at /functions. Uploading. 20:18:42.385 ⛅️ wrangler 3.101.0...

Pages Repository Limit

Hello. I am hitting the same issue discussed in this thread: https://discord.com/channels/595317990191398933/1351610490069057638/1351610490069057638 We are using a monorepo as well from the same repository. Hit the limit of 10 pages projects deployed from the repository. We have customers waiting, and I can't find the "limit increase" form... so I thought I would reach out here. Account ID is: 804f65dff7cae7a9f4fee96ca2f65958...

How to use wasm NPM package (pdfium)

I'm trying to use pdfium, but run into errors: 1. import { PDFiumLibrary } from "@hyzyla/pdfium/browser/base64"; Gets me built and deployed, but runtime error of (error) failed to asynchronously prepare wasm: CompileError: WebAssembly.instantiate(): Wasm code generation disallowed by embedder b/c Cloudflare disallows runtime fetching of wasm (even though the base64 is in my code itself). 2. I tried updating wrangler.jsonc, but this property is not supported in wrangler:...

CNAME conflicts with TXT record name

My CNAME conflicts with an existing TXT name, but I think I need both. I'm using Cloudflare Pages and I have a custom domain. I thought I could use a CNAME record to redirect my root to my Cloudflare pages.dev address. But I have a TXT record with spv=1 information that also need to use the root name. Can't have both, but I need the TXT record information so I can send mail from another server. I'm trying to write a redirect rule to point to my pages.dev address, but it's not working so far. Am I heading down the wrong road?...

Astro Starlight Search Feature broken on custom domain but not on pages.dev URL.

- Domain: https://boxersteavee.dev, or https://website-blx.pages.dev - Deployment ID: (where do I find this?) - Account ID: 1dd090371320bab7d015b03071c2435a - No error, but when on https://boxersteavee.dev, the search functionality doesn't work. I just get an empty box. On https://website-blx.pages.dev, it works. These are both the same deployment, and I have tried other devices (including mobile) and other browsers, but it is the same....

Hey everyone, I need some help with Cloudflare Pages.

I've deployed my app on Cloudflare Pages, and I'm trying to implement a multi-tenant feature where each user gets a custom subdomain like user.myapp.com or user2.myapp.com. The problem is that Cloudflare Pages doesn’t support wildcard custom domains out of the box. I tried setting up bulk redirects to handle this, but I’m still getting a 522 error when accessing any of the custom subdomains. Has anyone managed to get something like this working on Pages?...

The entry-point file at ".open-next/worker.js" was not found

I am trying to deploy a Next.js project using the new OpenNext adapter. I've followed all the steps in the guide aside from caching which I understand is optional https://opennext.js.org/cloudflare/get-started ...

No matching export but builds and runs fine locally

``` 00:22:04.996 ✘ [ERROR] Build failed with 1 error: 00:22:04.996
00:22:04.997 ✘ [ERROR] No matching export in "../../node_modules/.pnpm/marked@15.0.8/node_modules/marked/lib/marked.esm.js" for import "Slugger" 00:22:04.997 ...