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

P12 | PEM certificates

How can I upload p12 or pem certificates to my Cloudflare Pages project to consume a external API?

Square SDK is failing my deployment

I am trying to deploy my project. I am using square SDK to read/write data. During my deploy I get the error message: Failed to collect data for services/[id] I did some research & it showed that the error is occurring because of axios. I used a fetch adapter to solve the axios error but I’m still getting the same result ...
No description

Cloudflare pages very slow

Cloudflare has become very(!) slow for me. Before I was just proxying my VPS. To remove this from the equation I moved the site(s) directly to Cloudflare pages. ...

Angular Deploy: Docs are incorrect about how to deploy C3 created Angular pages app using GIT.

I noticed that when you create an angular app using C3 it will default to using SSR. It will create package.json scripts that will be used to deploy, start, etc. The deploy from the CLI will work fine bc it calls the script that use: "npm run pages:build && wrangler pages deploy dist/cloudflare". That will call the tools needed to package up the build into the dist/cloudflare and push it up live and everything is happy. However, if you follow the docs for git setup and choose "Angular CLI" (as i...

SvelteKit Supabase with SSR authentication not working in production

Information - Website: schaaponline-web.pages.dev - Deployment ID: 8add7df8 - Account ID: 032bf2ee555ece960d04c403e0d190e5 - Error: Error: Redirect loop at Y (entry.B2BMVBJ7.js:1:18097)...

Get Deployment ID during Pages build

Is there a way to get the Deployment ID of a Pages deployment during the build step as an environment variable? I know the CF_PAGES_URL contains a part of the build ID in the subdomain, but I'm looking for a way to get the whole UUID. Thanks in advance!...

Java on build system v2?

Right now is it impossible to have an up-to-date Java JDK running. I tried installing a .deb without success on my build script (can't sudo). Is there a way to have a recent version of Java in the build system?...

npm run pages\:deploy redirects to a consent page, and after that to a localhost:8976 that fails

I was working great this days, but from today I cannot deploy my app to cloudflare pages. npm run pages:dev works great, but when try to deploy it using npm run pages:deploy, is finish to build the assets and so, and then for some reason it opens a webpage to give consent to wrangler on cloudflare website. I click the allo button, takes some seconds, and then redirects to a localhost:8976 oauth callback that fails, because ther's no server runing in that port at that moment. 1. This is the first time I see the "Give consent to wrangler", why it is asking me know? 2. During the time that wrangler opens the web browser to ask for consent, the localhost:8976 seems to be runing, while I see that the 8976 port is open, but then when I click the allow button in the consent webpage, I suspect that the wrangler finish before the consent webpage redirects to localhost callback, so it cannot finish the process ...

Error: Output directory "website/dist" not found.

I keep getting this error while trying to host my website onto pages. Could someone please help me understand where I'm going wrong? I want to deploy the static files in website/build onto my domain (and maybe the ones in old_website to a subdomain) Repo: https://github.com/mssRPRAD/mssrprad.github.io ...

Sudden Internal Server Error

The homepage of my site on Pages is suddenly returning only "Internal Server Error". The site uses next-on-pages, but this particular page is static generated. It was working fine a few minutes ago, and I haven't pushed a change in days. What could be causing this? Other pages on the site had an issue for a bit but they work fine now, I'm only still seeing issues on the homepage....

no such file or directory

Getting this issue for a next-on-pages:
Unexpected error: ENOENT: no such file or directory, copyfile '/Volumes/Primary/Code/cms/.vercel/output/functions/api/clerk/webhook.func/wasm/wasm_6deddb02766b8f32d03f9865228a05a9c569a74e.wasm' -> '/Volumes/Primary/Code/cms/.vercel/output/static/_worker.js/__next-on-pages-dist__/wasm/wasm_6deddb02766b8f32d03f9865228a05a9c569a74e.wasm'
Unexpected error: ENOENT: no such file or directory, copyfile '/Volumes/Primary/Code/cms/.vercel/output/functions/api/clerk/webhook.func/wasm/wasm_6deddb02766b8f32d03f9865228a05a9c569a74e.wasm' -> '/Volumes/Primary/Code/cms/.vercel/output/static/_worker.js/__next-on-pages-dist__/wasm/wasm_6deddb02766b8f32d03f9865228a05a9c569a74e.wasm'
...

Wrangler pages deploy public does not upload every file in the directory

During a new deployment i see something like "✨ Success! Uploaded 10 files (137 already uploaded)", does that mean that only files that changed were uploaded? What mechanism is used to determine which file has been altered? Is it hash?

build exceeding memory limit

so i have a pretty large nextjs application and it builds fine without having export const runtime = "edge"; set however once i set this in my layout.tsx it maxs out for some reason ```bash <--- Last few GCs ---> ...

Can't create a new cloudflare page

Everytime I create a new page I get this error
No description

Error: Pages only supports files up to 26.2 MB in size (NEXT pages)

Deployment ID: 258f602e-9b7d-4e90-ab3b-fddc80553d78 Account ID: 10df54f4523cc12a6bbbf3c525b4d5ce 19:08:06.483 ✘ [ERROR] Error: Pages only supports files up to 26.2 MB in size 19:08:06.483 ...

Build Stucks on "bun install v1.0.29"

Hello, the build process stucks on bun install. What can I do to make it contue? Regards, Marius...
No description

error when trying to deploy next js page

deployment ID: f5eff94f-36d7-4735-987a-5ac18de2b9ea Account Id ; ...

How can i add a package to the Cloudflare Pages image?

I'm migrating from Netlify to Pages, but when deploying it returns this error:
[11ty] /opt/buildhome/repo/node_modules/puppeteer/.local-chromium/linux-722234/chrome-linux/chrome: error while loading shared libraries: libX11-xcb.so.1: cannot open shared object file: No such file or directory
Looking into the puppeteer repo i found the solution is to install the following packages:...

Getting 403 Forbidden nginx when trying to call external api

Hi, I'm getting a 403 Forbidden nginx error when trying to send a post request to "https://steamcommunity.com/openid/login" This only happens when my application is deployed to pages. If I'm testing locally it works perfeclty fine. I found that it's most likely due to steam blocking cloudflare's requests, so I'm wondering how could I fix this?
No description