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

How to handle private assets with Cloudflare Pages & GitHub?

I'm making a website that uses licensed fonts that I obviously can't distribute, but I want the rest of my site to be open source (I'm using a GitHub repository). I have the folder with the fonts in my .gitignore, but the fonts need to get to Cloudflare somehow. I currently have Cloudflare set to deploy my site from the GitHub repo, but I can't upload the fonts to GitHub, so how should I deploy my site instead?

Cannot link github

Account ID: 90e573cb19849ba7d4a553766544b9b0 When I try to link my new github account to cloudflare, it fails to link. There is no error, but it does not appear in the dropdown when creating a new pages site. Ive also tried unlinking and relinking to no avail? (Problem seems very similar to https://discord.com/channels/595317990191398933/789155108529111069/1056577433261854720 for reference)...

Forward Build Logs?

We've got a corporate CloudFlare instance with some GitHub-driven CloudFlare pages projects. Would like to be able to allow either the link in the build report (what's shown in GitHub Conversation for a PR) to allow NOT-ADMIN USERS to see the build logs to debug stuff... really don't want our developers to have to have CloudFlare accounts to see the build logs. Is there a way to have the logs visible on the link specified, or is is possible to have it push the build log somewhere (an GitHub issue, email it, whatever)?...

What storage does "Cloudflare Pages" use internally for static assets?

What storage does "Cloudflare Pages" use internally for static assets? I'm asking because we are using "Workers for Platforms," and currently, we use R2 for static assets. Would moving static assets from R2 to "Cloudflare Pages" potentially result in significant performance gains worldwide?

CF Pages site serving expired SSL cert

Hey I have a cloudflare pages site serving an expired SSL cert, anyone else facing the same issue? (ticket id is 2810240 if any cloudflare employees see)...

Using builtin node packages on build process cause errors

hello, is it possible to have firebase-admin on cloudflare pages? it keeps getting an error on build, because it relies on node packages ``` error during build:...

Make custom domain point to another custom domain

Hello šŸ‘‹ Once again, great job with Cloudflare Pages, great product šŸ‘ I’m trying to make a custom domain point to another custom domain of a pages project but it does not work....

Stripe JS SDK & next-on-pages Compatibility

Hi all - is it known if the Stripe SDK is compatible with next-on-pages? I have a NextJS app that I'd like to deploy on pages, and am using next-on-pages to support SSR & bundling my /pages/api/*.ts API's into workers, however, my pages builds are failing with: ``` 22:53:11.754 ā–² Failed to compile. 22:53:11.755 ā–² ../../node_modules/function-bind/implementation.js...

Content-Type for some files are randomly missing

Hey! Deploying a pretty standard site on Pages, and files randomly are served without a correct Content-Type, making the application fail. Earlier today the entire index.html was served as plain text, and now there's a JS file missing it's type

website issues happens all the time

hi i have some websites hosted on replit but it goes down all the time is this bc of bc of the domain site (exsample namecheap) where i got my domain from or is this happing bc of outer things hduv-games.eu.org bota-apex.eu.org help.bota-apex.int.eu.org...

Running into 522 error when trying to connect

My website is on persolv.pages.dev, and I am currently running into a 522 error when trying to access it from the root domain (www.persolv.ai). I recently transferred away from squarespace so not sure if something is off here, but I've already removed the squarespace A records and added in the cloudflare nameservers

How do I rebuild my static website?

Hello. I cant find the option to rebuild site anywhere

Cannot set property crypto of #<Object> which has only a getter

I followed the procedure to add Cloudflare on solid-start ssr and I get this error on npm run dev. I also get solid-start dev version 0.2.26 (node:1844) ExperimentalWarning: The Ed25519 Web Crypto API algorithm is an experimental feature and might change at any time...

Next 13.4.2, not-found.js, and 404's on Pages

Hi all - I have successfully been publishing pages w/ a Next.js setup for a few months and things are great, except.... With the new appDir setup on Next 13.4.2, I created a not-found.js file to return a custom 404 and not the Next default. On my local setup using npm run dev this works correctly and gives me my custom page. On Pages, it returns the Next default error message and not the custom page. ...

Create multiple Pages projects with a monorepo

I'm using a pnpm monorepo and it feels impossible to deploy multiple apps/projects from the same repo. Is there a way around it? For some context, I'd like to deploy a Sanity Studio app and my website which is based on SvelteKit. This is something possible with Vercel but I can't figure it out yet on CF Pages 😬...

"Unable to find pages project" error with GitHub Actions

I'm using the pages action to deploy my site from GitHub Pages. This is the part of the Action that defines the Pages deployment
- name: Deploy uses: https://github.com/cloudflare/pages-action@v1 with: apiToken: $ {{ secrets.CLOUDFLARE_API_TOKEN }} accountID: $ {{ secrets.CLOUDFLARE_ACCOUNT_ID }} projectName: "website" directory: "dist" gitHubToken: $ {{ secrets.GITHUB_TOKEN }}
- name: Deploy uses: https://github.com/cloudflare/pages-action@v1 with: apiToken: $ {{ secrets.CLOUDFLARE_API_TOKEN }} accountID: $ {{ secrets.CLOUDFLARE_ACCOUNT_ID }} projectName: "website" directory: "dist" gitHubToken: $ {{ secrets.GITHUB_TOKEN }}
...

CSS not updated.

i have my portfolio on Cloudflare pages, i updated my portfolio and it is updated to one url provided by cloudflare(in green) and not being updated on my custom domain(in red), what could be issue. any help`?

Error getting domain name working.

The browser gets an http 522 error, and when I tried to put a "Rule" in I got a Page Rule validation failed Code: 1004 I'm not understanding so many direct addresses to test page: https://cf01-3i7.pages.dev/ https://60f8e9ad.cf01-3i7.pages.dev I hit "retry deployment" and rec url below....

Nuxt (3.5.0) SSG rendered HTML differs on a custom domain.

Hi, I'm facing a rather weird issue where I don't really understand where it's coming from but am suspecting it has something to do with Cloudflare. Somehow the website content on my custom domain uwvloereruit.nl differs from uve-website.pages.dev. The content served by the custom domain is different (in a visually breaking way) while its is fully server side generated HTML. I have verified this difference by examining both response bodies with Postman. Specific components are somehow rerendered and comments indicating conditional renders are not present in the HTML returned by the custom domain which indicate to me this is not a Nuxt issue? I tried various possible solutions and non of them have worked....

Weird Pages NextJS build error

Cant really make it what is wrong with it, its quite a simple app, with nothing fancy going on aswell. Error logs are attached...