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 preview with wrangler cli

Hello everyone, Is it possible to deploy a preview with the wrangler cli without connecting github to cloudflare ?...

Multi tenant pages

Is it possible to create a wildcard and have a multi tenant pages project that displays different content based on subdomain?

pnpm is suddenly on v9.0.1

pages.dev: https://site-3vg.pages.dev/
deployment ID: 35f36db7-b65d-478b-86e7-70b3c9383ee3
account ID: 1a99b52ba5412ca55475fdbec4e0ab26
pages.dev: https://site-3vg.pages.dev/
deployment ID: 35f36db7-b65d-478b-86e7-70b3c9383ee3
account ID: 1a99b52ba5412ca55475fdbec4e0ab26
...

No Pages config file found - can we use a config for Pages?

Hello, Just started to use pages and during some first builds get the error about No Pages config file found. Similar questions in Discord...

8000000 error when clicking "delete project"

I am trying to delete a pages Nextjs project from my account and this error code pops up after few seconds. I thought to report here just in case there are others facing this or its a known issue.

Deploying Pages with D1 Binding via Wrangler.toml and GH Action

I've got a SvelteKit application deployed to Pages+Functions using the @sveltekit/adapter-cloudflare adapter and the cloudflare/pages-action GitHub Actions action. I've confirmed that invoking API endpoints runs a Function as it should, both locally (via npm run dev) and on prod. I'm now trying to add a D1 database. I've added the binding to my wrangler.toml file, and it works great locally (which is awesome 🤩), but even after deploying the schema to the remote DB via the CLI, the D1 binding in the Function does not work on my branch deploy. I suspect this is because the pages-action doesn't pick up the wrangler.toml, so I tried to switch to the wrangler-action, but I haven't figured out how to get it to deploy both the pages site and the D1 binding....

Pages deployment is 500ing?

Pages.dev: https://classes-1ao.pages.dev/ Deployment ID: all of them, but latest one is 6796f6da-c6f5-4f1a-8975-56700eb4d264 Account ID: 2d90945dc21ab7dc41d442d47f1d78b4 I don't have any error cause this is re: cf serving this. I've uploaded the pages with a Direct Upload (using wrangler)...

Nextjs 14 API

I am using firebase for chat in my app. Create API for for i get below errors when i build my app. Path (app/api/(chat)/users) ```js ./node_modules/@firebase/database-compat/dist/index.standalone.js:13:1 Module not found: Can't resolve 'tls'...

Deploying stucks when service bindings in wrangler.toml

pages.dev: remix-hono-turbo.pages.dev
account: b2477739be77aa90496d6c0669820012
pages.dev: remix-hono-turbo.pages.dev
account: b2477739be77aa90496d6c0669820012
I'm trying to deploy a remix application in monorepo using turborepo, ...
No description

Larger bundle size for Workers Paid not applying?

Sample deployment: 21570bb8-d9dc-4359-8804-3bb12b5e4d8b I'm deploying a Remix app on Cloudflare Functions/Pages using a project created with the Cloudflare CLI. After adding a new library, my application will no longer deploy. (It deploys successfully locally, but silently fails in the Cloudflare console. @Erisa helped me understand that silent failures mean the bundle size exceeds the free limits.) I couldn't figure out lowering the bundle size, so I gave in and upgraded to Workers Paid for the 10 MB deployment limit... but deploys are still failing silently....

Can you deploy a Next.JS to CloudFlare Pages thats using both SSR and static SSG?

From what I can find out from the docs, CloudFlare offers two routes to deploy Next.Js, either full-stack or static. For our requirements we have 80% of the pages will be static but 20% will require some API and real-time dynamic content and both would need to be on the same domain / routes. Could anyone help and confirm if it's possible to deploy on static and use workers for the APi/Dynamic pages on the same deployment?...

ERROR No Pages config file found

I keep getting this message when I link my GitHub repository with Cloudflare Pages. All that is in my repository is a sample .html file as I'm playing around with my deployment environment. I am using Namecheap as my domain registrar if it helps. Can anyone guide me through this issue? Please and thank you.
No description

How do you debug a failed build?

The docs indicate there is a build log but there simply isn't one in the UI
No description

Request for help troubleshooting failed Pages deployment with Nuxt

I'm new to Pages and running into a cryptic "This deployment failed" when trying to deploy a Nuxt app. I went through the tutorials to deploy a starter app and all works but when I try to deploy my in-development app deploys fail. Is there a way to get more information? Tailing logs gives me "workers.api.error.unknown [code: 8000068]"

Deploying Blazor project: /bin/sh: 1: build.sh: not found

I'm trying to deploy a blazor project to pages, I've followed the steps in this https://developers.cloudflare.com/pages/framework-guides/deploy-a-blazor-site/ - added the build.sh file into the root dir using the git add --chmod=+x build.sh command However when deploying I'm getting that the build.sh file is not found ```sh...

Deployed Angular micro-frontend app routing does not works on mobile device browsers

Hi All, I have an angular 17 project. I created a workspace, named micro-fe-workspace. I have three applications Shell, microfrontend-a, microfrontend-b and a library shared-lib. I user angulararchitects.io native-federation library. I deployed it on Cloudflare. The deployed demo app, it seems to me, began to work. ...

Deploying with wrangler.toml with a Service Binding stuck in Queued state

I have a Next.js app I'm trying to deploy to Pages, that has a Service Binding. The only problem is that when I run wrangler deploy [...] it all shows successfully in my CLI, but in the Pages Deployments list page, the new deployment shows up in the "Queued" state forever. There are no errors as far as I can tell, and the UI doesn't really show any useful information. If I deploy without the Service Binding - that deployment goes through fine. Then if I go to the settings and manually add the...

Project is set up for npm but it is currently being run via bun this might lead to build errors

Don't recall using npm when i init the repo but anyways, wondering what settings were set on npm that i should check out if im using bun ```ts āÆ nr āœ” script to run › preview $ bun pages:build && wrangler pages dev .vercel/output/static...

Every path serves index.html

Hi, I've just set up Cloudflare Pages for the first time, coming from past experience with Netlify, GitHub Pages, etc. As far as I can tell everything is configured correctly and my site serves requests... except that the path is totally ignored. So, every request serves the index.html response, even ones that do not correspond to any valid file that's been uploaded. So, for example, https://mothers-day-2024.pages.dev/this-page-does-not-exist is serving the same content as https://mothers-day-2024.pages.dev/index-v1.5.2.css which is the same as https://mothers-day-2024.pages.dev - they all match the index.html that I uploaded. I have no idea what could cause this. I have been looking through other settings on my Cloudflare account in search of things like page rules, caching configurations, and the like, but I haven't found anything that seems like it could be relevant, nor are any of the items from the Cloudflare Pages debugging guide relevant. Pages domain is mothers-day-2024.pages.dev, account ID is 6e22aeaceaa58829267b9c098f44bb08. I am attaching a screenshot showing the uploaded assets exist as far as Cloudflare is concerned, it just... doesn't serve them, except for the index.html....
No description