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

Deploy on cloudflere Pages with github actions fails.

I am trying to auto deploy my project to cloudflare pages when there push in the staging branch or in production branch. below is my yml file for staging. ``` name: Publish Staging...

Monorepo project on Cloudflare pages

Hi, we have a Monorepo project with multiple front-end applications inside, and each application needs to be deployed to a different page. We tried to connect the Cloudflare page to a Git repo so we can use build command but found out that only one repo can connect to one repo. How can we better manage our monorepo project on Cloudflare pages? thank you...

Does uploading assets with wrangler count as a "build" for Pages in re Pricing?

The pricing for pages says the Free plan comes with 500 "builds" a month. If I deploy my code using GitHub Actions and Wrangler, does this count against the number of builds for billing? https://pages.cloudflare.com/#:~:text=500%20builds%20per%20month...

Pages deploy fails without logs

Hello! I'm trying to distributing a new app update, I have builded it and I can run it locally using npx wrangler pages dev dist/ When I run the deploy request, it start and then fails. From CF dashboard I can't find any logs. THe strange thing is that if a create a manual distribution, uploading the same directory, it works.. Anyone is having similar problem? Thanks...

Is there an example next.js on pages example repository?

Are there any example repositories which incorporate some sort of api/backend/fetch example? I've been unable to get any of the following working on nextjs/pages: - app directory with fetch - pages directory getServerSideProps - pages/api with edge untime ...

How to connect my GKE backend to my pages?

Trying to setup a small demo for cloudflare pages and have my static assets hosted. I have a GKE backend my app needs to use through the ingress IP. I can set up a LB with the origin to my ingress IP and that portion works, but unsure of how to connect my pages hosted page and getting traffic to my ingress.

How to setup subdomain redirects

I have a domain name (example.com) and I want to route twitter.example.com and example.com/twitter to my twitter account. I have written 2 separate rules in a _redirects file but they are not working. I am not sure how to troubleshoot it. can someone help me please? here are the 2 rules: ``` https://twitter.example.dev/* twiiter.com/example_com 302...

Unable to connect with GitHub

I’d like to move my site from GitHub Pages to Cloudflare Pages. However, whenever I click „Connect with GitHub“, I authenticate within the GitHub UI, but then I get redirected to a 403 page in Cloudflare and the account appears not to be connected. I’ve tried reconnecting like 5 times already over the span of a few days, the result is always the same. Am I doing something wrong or is there a bug on Cloudflare’s end?

Full (Strict) SSL mode with Pages

Hi, this is a generic question about using Cloudflare Pages with SSL. I'm currently using the Flexible SSL mode and wonder if Full (Strict) is supported for Pages.

pages build error

pages deployment failing, what could be wrong? ``` Executing user command: next build && next export 03:38:26.456 /opt/buildhome/repo/node_modules/next/dist/build/index.js:440...

How to use cache API in page function?

I've made use of the cache API successfully within a worker before but I'm unable to figure out what is wrong in my page function. Is it not supported? It works fine locally with wranger pages dev but deploying it to my page worker results in no value getting incremented. My page worker does have a custom domain associated to it. My test code, it's always returning 1 and never incrementing when deployed to the page worker (works as expected against wrangler pages dev ...

Problems Deploying Website

Hey So for whatever reason, I am now getting this error

Pages help needed for www redirect

I have recently created a page project and have configured DNS for my custom domain. So my domain loads the pages project with the domain name (Ex: example.com) However it does not load the app when www (www.example.com) is used. I have added two custom domains for the pages project as shown in the attachment. ...

Pages help needed DNS

I am seeking help on the issue I am facing with cloudflare pages. I have deployed a simple one page static page in cloudflare pages and trying to link it with a custom domain (purchased from crazydomains) I have done the name server update from the craydomains to match the cloudflare name servers. I have added a custom domain from the pages custom domains tab and configured DNS. but still I am unable to see the page when I access with my custom domain name. Attached is my DNS configuration in cloudflare. ...

Pages Logpush not syncing

Hello, I've got Logpush setup on my account, and my workers are currently syncing fine. However my Pages deployment is not syncing logs. I don't see anything UI specific in my pages deployment on the dashboard - how do I get these working?...

discord redirect

i cant make it work my page rule, the site add ) at the end of the link and dont make it work

Unable to use @aws-sdk/client-s3 in Nuxt 3 Pages

I have a new Nuxt 3.6.1 application deployed with cloudflare-pages and everything works as expected. When using @aws-sdk/client-s3 and creating a new s3client the deployment to cloudflare-pages fails after the build and upload is already completed: `✨ Upload complete! Success: Assets published!...

How do I avoid rewritten URLS only accepting GET requests

I've recently deployed a NextJS site while using the URL Rewrites to proxy /api/:path to api.<domain>/:path, However one thing I've noticed is that when sending POST requests it gets swapped with a GET request, breaking most of the data fetching routes (Assuming use of GraphQL), How do I avoid this behavior? API in images is provided via Express...

using.htaccess file

Can I use .htaccess files in Cloudflare Pages? I want to rewrite the URL example.com/favicon.ico to example.com/favicon.

using pages with logpush

Hi, I want to use pages with logpush to access runtime logs. Ive created a logpush job and connected it to an R2 bucket. The job is enabled and the events are the workers trace events. I have 6 different pages app, but the R2 bucket is empty (it just contains a challenge). Has anyone managed to make cloudflare pages work with logpush ? How can I debug ? ...