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

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

Error 522 when trying to setup a vanity domain via cf for saas

Hey I'm trying to setup vanity domains for my pages project, so that customers can use their own domain instead of a subdomain of my domain. I've added a custom domain in the SSL cf for saas panel (screenshot) but accessing this domain gives me a 522 error. How can I fix this? I've added the CNAME on the vanity domain to point to my fallback origin configured in the cf for saas panel...

One repository -> multiple pages projects

Hello 👋, I would like to ask if it is possible to create multiple Pages projects that would use the same repository. Basically what we want to achieve is that we want to have multiple Pages projects for one repository and every Pages project would be for different app environment with different branch to build and ENV....

help

i need help

Add another person to my Cloudflare page

Does anybody got any idea on how to give someone access to a cloudflare page? Everything seems to be account wide and no matter how many permissions I give they can't access the page I've given them access to the domain connected to the page in Cloudflare and added them as a collaborator on github, but they still can't see the project in my account pages section...

How to set up cloudflare to send an email (or emit some event) after page build is deployed?

I would like to be able to send an email after a page has been successfully deployed. Right now I have a github action that automatically merges any open PRs at a certain time. I've connected cloudflare pages to this github repo, and it automatically deploys the new PR, which is great, but I also want to get an update when that happens. Any ideas? Should I use /functions somehow? I saw cloudflare has an email service, but I couldn't understand how to make it work... https://blog.cloudflare.com/sending-email-from-workers-with-mailchannels/...

ERR_TOO_MANY_REDIRECTS -Tunnel is healthy

I need help setting up my new domain on Cloudflare tunnels . The connection is healthy, I can ping the subdomain but I can't see my local web app.