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

HELP PAGE DEPLOYMENTS ARE BROKEN

loudflare API returned non-200: 503 API returned: no healthy upstream /home/runner/work/_actions/cloudflare/pages-action/v1/index.js:22082 throw new Error("Failed to get Pages project, API returned non-200"); ^...

How to get Sentry working with nextjs hosted in Pages? Or what is the best alternative?

Hello, we have a Nextjs App running on Pages. We use Sentry with the "sentry/nextjs" SDK, and the errors thrown on client are correctly visible in the Sentry dashboard but none of the errors raised in the server are visible. I tried to discuss with their support and at the moment it's not really helpful.. I've seen those two tickets on the sentry & next-on-pages repos and I don't see how to unlock this problem: - https://github.com/getsentry/sentry-javascript/issues/14931 - https://github.com/cloudflare/next-on-pages/issues/931...

React Pages for react widgets embedded into existing sites?

I'm looking into building a react application that can be embedded into a site by linking to the main.js and it renders on the page for any divs with the right class/id. Is this possible via cloudflare pages? Or would a worker be a better solution? I have built several react websites with a framework like next.js but this is my first time trying to build something that embeds react partially into a client's website.

What's the difference between Cloudflare Pages and Workers Frameworks?

Basically, when making an app, which should I choose and why? The line between them is really blurry.

API routes in nextjs is not running and giving "no such module" error

I have a nextjs project which is using next on pages to build it for the cloudflare pages platform. I followed the documentation here: https://developers.cloudflare.com/pages/framework-guides/nextjs/ssr/get-started/ I am also using D1 as my database. Running the development server, I can send requests to my /api/waitlist route, where waitlist is the route defined, and I am able to save data to my local D1 correctly. The problem comes when I run a build preview using this package.json script: "preview": "npm run cfbuild && wrangler pages dev --port 3005". It builds the project perfectly fine and I am using the experimental-edge runtime. When the wrangler dev server starts and I make a request to my /api/waitlist route, it is throwing the following error:...

Deleting a website and pointing domain to another deployed website

Hi guys I deployed a website, hit an error, and wanted to redeploy with a different framework. I fixed all up but now the previous website is still up and is using the domain I bought from CloudFlare. I want to do three things: 1. Remove this purchased domain from the previous deployment but keep it on cloud flare so I can use it on my newly deployed website. 2. Take down the previous website....

No traffic recorded in web analytics for *pages.dev website

Hello everybody. I have a CF Pages project currently in development on the *.pages.dev domain, which hasn't yet been assigned a domain. Although I enabled web analytics, no traffic is recorded, so I'd like to know if the missing domain is why. Cheers....

Cloudflare Pages build error

I'm getting a Cloudflare Pages build error. To deploy a project based on Vite (React), I built it. But it got stuck with the error log below. I also tried using the "vite build" command, but the result was same. How can I resolve this issue? ...

Exclude some environment variable from the published page

Our build configuration uses a GITHUB_TOKEN that is declared as a Environment variable with a secret value on page build config. Everything works fine but this variable finds itself being published as part of the code public website. Because it is used to access a private github npm registry I cant use a fine-grained token, it has to be a classic one. GTherefore it has read access to many repo and can't be restricted. I'd rather avoid having this token exposed. What are my options? can I remove...

NodeJS Epipe failure during cloudflare build

13:57:44.555 .svelte-kit/output/client/_app/immutable/nodes/0.D7r-Fi1J.js 131.28 kB │ gzip: 30.56 kB 13:57:44.555 ✓ built in 10.62s 13:57:45.72413:57:45.724 node:internal/event_target:1101 13:57:45.724 process.nextTick(() => { throw err; }); 13:57:45.724 ^...

Increase pages request limit

Every so often when using my website quickly, I hit page request rate limits. Is there any way to increase this limit so it happens less often? https://teslemetry.com Built with Nuxt...

Help: Binding undefined during build process

I'm creating a rag app entirely with cloudflare and next-on-pages and hono as api server however, when i try to access the binding, it gives this error. ``` [wrangler:inf] GET /chat 200 OK (21ms)...

Static assets throwing 500

url: https://cb0e498e.brain-and-spine.pages.dev deployment id: cb0e498e-fe9e-4c9d-bb52-0b45fabfaabe account id: abb109610a331adc60858b4a4b8a222f Static files are generated using simply static for wordpress...

EXTRA RECORDS IN DNS THAT COMES BY DEFAULT

What are all these records in Cloudflare related to random things? Should I delete them all in DNS and just set up my things?

New deployment after a year

Today I deployed a new version of a pages site preview. The last upload was 1 year ago. The problem is that the domain It creates is not reachable (404) even after some time. So I tried to go directly in production. The problem is the same, the new link is not reachable and the link .pages.dev points to the previous version. Anyone can help? It's a bit weird...

Dev Branch on CF pages

in CF pages I have created two branches main and dev and then created two different subdomains for each then I edit alias of preview to dev sub domain , now main domain works fine but dev domain redirects to alias and ask for email Am i missing something? https://soulmedia-website.pages.dev/ https://dev.soulmedia-website.pages.dev/...

DNS error google sites

Can't seem to get my custom URL to connect to my domain through cloudflare no matter how closely I follow the instructions or google my way through it. Came here in a fit of desperation, any and all help would be appreciate! I verified the domain through google and the google site seems to accept the domain but I'll come back to it after an hour to a DNS error. I have the site setup with a CNAME as per googles instructions. I read somewhere that it should be set to FULL(STRICT) for the DNS settings but to no avail I cannot get my google site to connect to my purchased Domain. Thanks in advance1...

Error: Failed to publish your Function. Got error: binding DB of type d1 failed to generate.

https://serverless-fullstack-alt-boilerplate.pages.dev/ daf6fec8-f507-4805-bef6-0eaca51c9858 95e4aff3a9a4f67ddf05efde2a8dabd9 Error when deploying, everything is working fine locally even on build preview and wrangler pages dev...

Fishing site on pages.dev

Just received message in viber from hacked profile, where "user" assures that you can get free money for free from some "org" and post a link to pages.dev domain. *** here was the link, could you block this thing, or at least investigate because sources are obfuscated, but it looks like this site trying to get access to bank information. Thanks, and sorry if I post this in wrong place, I'm new here 🙂...