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
Ccmendoza5/15/2024

Consuming queues and defining durable objects in SvelteKit app

Hi, I have a sveltekit CF pages app that utilizes cloudflare-adapter. I recognize that we can access durable objects via the platform.env, so my questions are: 1. Is it possible to define the Durable Object instance (plus be able to set up a websocket server for it) in the same app, or should I create a separate worker for that? 2. Is it possible to consume queues? (context: since my plan is that the request will go to the queue first, then the queue will be the one calling the durable object fetch) Thanks!...
MMetalGear5/15/2024

React Server Components support?

Does cloudflare pages support the latest react 18/19 features like server components? Anything that is not supported that I should know about
Bbloushi5/14/2024

Debugging a deploy issue in a Remix + Vite Project

Hello, I have migrated my existing Remix CF Pages app that's been running for about a year to Vite, and the migration has been a pain. At the moment, I am able to deploy the app, but all I get is a status 500 error with the message "Internal Error". All logs and consoles are clear, in fact, Wrangler Tail gives me two requests with 200 OKs (one of them is the favicon). Any idea on how can I go about debugging this hair-pulling issue? Thanks in advance....
언블베5/14/2024

CPU time Go further than the limit.

The CPU time 99th percentile continued to be 3500, so I set the limit, but it did not change. I redeployed it several times and waited, but stilled it still didn't change....
No description
Rrichburdon5/14/2024

How to change and manage subdomains?

I have a Pages "app/project" with custom domains. I can't see how to change the assigned subdomain associated with the Page (e.g., foo.pages.dev).
FFiskn5/14/2024

UI Alerts after disconnecting git integration on pages project.

Hello! We've been using the git integration for deployments of our pages but due to build permissions and environment we need to move the deployment to github actions. I disconnected the git integration and added a github workflow using the cloudflare/pages-action to handle further ci builds and deployments - which works without problems. ...
No description
NNathaniel5/13/2024

Tree-shaking for Pages Function

I've got a codebase tested with Vitest, exclusively using in-source testing (https://vitest.dev/guide/in-source.html). When building the front-end application, import.meta.vitest is defined as "undefined" so the tests get eliminated by the bundler. This doesn't seem to work with Pages Functions. When I import modules that have little source code but massive tests, it seems like the content of the tests gets included, cause the build will fail with the message `Error: Failed to publish your F...
Aai.alok5/13/2024

Get Previews for PRs from forks

Is there any way to get previews of PRs from fork if I am using cloudflare pages? Like the way vercel supports. Thank you !! #pages-help...
WWaterfiend5/13/2024

Cannot create page

Hello, when attempting to connect to Git to create a page, I am faced with the error: An unknown error occured. Contact your account team or Cloudflare support: https://cfl.re/3WgEyrH. (Code: 8000000)
VVlady5/13/2024

How to access the Pages ASSETS binding with getPlatformProxy

Hi folks, I'm migrating a large react app to Pages. I'm implementing a hot-reload server for my pages app, which is using advanced mode for server-side rendering. When I build the app, it works, but for development I hit a problem where I'm unable to serve static files because the ASSETS binding is undefined after I use Wrangler's getPlatformProxy. I wrote this Vite proxy to have a nice development environment, inspired by Remix's dev proxy. My goal is to be as close as possible to the production SSR environment....
No description
Hhomotechsual5/12/2024

Failing build - not correctly installing yarn dependency from `packageManager` field.

22:41:37.925 Cloning repository... 22:41:38.622 From https://github.com/DocusaurusCommunity/website 22:41:38.622 * branch 1df77c3566004568f89232bd8edc92a00d8d3b3d -> FETCH_HEAD 22:41:38.622
22:41:38.667 HEAD is now at 1df77c3 Merge pull request #20 from DocusaurusCommunity/updateDocs...
KKyura5/12/2024

authentication

How To Reset 2FA Code??
NNullVoxPopuli5/12/2024

can i set the sha for pages deploys with wrangler?

It seems the sha generated by cf is totally random?
No description
CCadú5/12/2024

Keep getting failed deployments after success wrangler action

I've read that the worker function has a limit of 1Mb, so I've subscribed to the paid plan to get 10Mb limit, then I managed to do a successful deployment, but after adding more stuff to my project (remix + hono) I'm getting failed deployments again. Last deployment ID: 5272dbfd-2f1d-4b81-b9fa-ac36c51c63d4 Can someone send me logs about the error?...
No description
KATK A T A I5/12/2024

i need help pls

iam trying to open vaksms.com but it keep verifying vak-sms.com Verifying you are human. This may take a few seconds. Ray ID: 8826b12e99550db8...
MmatiasjMusante5/12/2024

Is there a way to run BUILDS (e.g., npm run build) without them counting as DEPLOYMENTS

TL;DR: Is there a way to run BUILDS (e.g., npm run build) without them counting as DEPLOYMENTS (500 free limit)? Hey, I've been diving into Cloudflare Pages and making good progress, but I've got a question I can't seem to figure out. What's the way to run builds (to produce static pages with any framework featuring SSG functionalities, like Next.js, Astro, etc.) without having to deploy everything? ...
NNullVoxPopuli5/11/2024

how do you tell wrangler to do a preview deploy?

I have this code so far: ```yaml - name: Preview ${{ matrix.app.name }} working-directory: ./deploy-prep-dist/${{ matrix.app.path }} run: |...
SK!.Saturn | ./kill.sh5/11/2024

Error while deploying docusaurus

Site: https://b00f34c3.docs-b25.pages.dev/ Deployment ID: 5f89e0bf-3e17-4554-93a2-bd7a9b33e607 Account ID: 8f95ea25df515d55aa21da251831a038 Got Repo: https://github.com/kinglyminecon/docs/tree/Cloudflare...
Aalka_995/11/2024

Email Provider compatible with cloudflare pages

Hi Guys Recently i tried to host my sveltekit in cloudflare pages with sendgrid, however there is a problem with their library when i tried to deploy it in cloudlfare ```...
No description
NNullVoxPopuli5/11/2024

Why is my function middleware not active?

I created a middleware here: https://github.com/NullVoxPopuli/limber/pull/1733/files and locally, testing with npx wrangler has the desired behavior. but when I view my page's latest deploy: https://4186709a.limber-glimmer-tutorial.pages.dev/1-introduction/1-basics...
Next