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

Working with D1 Remote DB locally with nextjs

So i'm using Cloudflare D1, I imported data into my remote Cloudflare D1 database, i didn't do this for the --local one and i don't really want to if possible. I want to just locally develop with the remote database. I have my binding setup and i created an API route like this ``` import type { NextRequest } from "next/server"; import { getRequestContext } from "@cloudflare/next-on-pages"; import { cases } from "@/schema";...

Deployment Not Found Kinda?

Ok so im having an issue when i run npm run build then npm run deploy it deploys and successfully builds my project to cloudflare but its in prview mode, When i upload the same folder directly to cloudflare i get a non functioning faild deployment not found? Seems like the branch main works fine but master does not not sure why though.
No description

Build failed on Cloudflare Pages.

Hello everyone. I have a cloudflare page which watches the github repository and deploy the changes once the PR is created. I got heap out of memory issue once I've added some addtional features to my code. To handle this problem, I've increased memory usage by using the following command. NODE_OPTIONS="--max-old-space-size=7680" The problem is, I get memory exceed error from Cloudflare build after adding the above command....
No description

FIX FOUND Deployment failed Qwikjs

b43165e8.dom-cogan.pages.dev a64efbd7163580ac72aa0029a4c264c6 not sure what happened but i use npm run deploy everything says its successful when i run it locally it works but on my cloudflare dashboard it says no deployment found. I even uploaded the files myself and it still says deployment found....
No description

I can't add custom domain

I can't add a custom domain to my Pages project. I'm pretty sure this CNAME no longer exists, but I'm getting the error attached here. AccountId : 445cf4e5f5179f92b804f9dbcc99b4fb...
No description

DNS Provided Not Working

How can i have help with this?
No description

Custom Domains tab not visible on Pages / 522

Hi there, I am trying to set up a URL I bought on GoDaddy to push a GitHub repo's index.html via Cloudflare. I have been able to sucessfully do this before with some guidance, but can't seem to figure out how to add a Custom Domain (or Alias) for the new site I am trying to launch. I am getting a 522 Error on the "host" which I think, technically, is GitHub, but it is set up exactly the same as my working site. I thought it was because my repo was private, but I made it public and it still isn't working. Anyone have any idea why I can see the Custom Domains tab on this site? Or how to get an Alias added to my page? That is the only detail that seems to be unique to the working site that used this method....

entry level issue with react & functions - no links created

Hello, I just installed the react app using cloudflare documentation, and in my pages I just have out of the box react setup. I added functions folder and 2 ā€œhello worldā€ type functions that say calls.js and dashboard.js. Functions say: export async function onRequest(context) {...

Fetch works locally, goes 522 when deployed

I would reaally appreciate some help when it comes to fetching an external API from inside of a Cloudflare Worker. My API is running with Express at the url https:/[redacted].hstgr.cloud:3000/ and when I do fetch that locally, I get a proper response which is a JSON with a "message: Request Accepted!" - you see that in the browser. So this works everywhere except inside a Worker:...

How to expose branch preview URL to public domain (branch.myapp.pages.dev -> branch.myapp.com)

Hi folks, I have a staging branch that is is routed to the branch preview URL like this staging.myapp.com -> staging.myapp.pages.dev. How would you do the same for all preview branch urls? I'm looking for something like this: [branchname].myapp.com -> [branchname].myapp.pages.dev.
No description

Unexpected domain registration search results

Hi folks, I have purchased a wrong domain due to the unexpected returned results. How can I revoke the order/change the domain name? I have submitted a ticket here but no response and don't know what to do next: https://support.cloudflare.com/hc/requests/3231915 I have asked a question in the community but the post is automatically filtered by AI. Really frustrated....
No description

Unable to retrieve KV variables

So I'm not sure what I'm doing wrong, I've followed the document's instructions but so far I'm still not able to read any KV variable: ``` interface Env { OTHER_PREV: KVNamespace; }...
No description

Annoying red message on cloudflare pace

So I'm getting a vectorize.not_entitled (Code: 1005) error showing up over and over in this page: https://dash.cloudflare.com/<id>/pages/view/poc/settings/functions do you know how to fix it?
No description

Unknown internal error occurred deploying Remix app

Hi, I'm having an issue deploying a Remix app, and keep getting Unknown internal error occurred. It works fine locally. The deployment id is a3de1787-bf95-497b-824e-fae9cb4cc835...

Smart Placement choosing potentially suboptimal locations

Our application https://mattrax-bdc.pages.dev connects to a DB hosted in the US, and we're developing from Perth, Australia. We've got Smart Placement enabled, but I'm not sure that the best location is being chosen to run our functions. Response headers indicate that the function is being executed in Singapore, rather in the US closer to our DB. For context, we use fetch to query our db since tcp connect doesn't seem to affect Smart Placement. ``` Cf-Cache-Status: DYNAMIC...

I have different builds when building my vite-react app using cloudflare pages

I am committing the bun.lockb file to ensure the deps are the same, and locally it runs as expected, but for some reason the css file gets all weird when I run the build command through the cloudflare pages build process. exactly the same commands used, and as I mentioned the bun.lockb file is also comitted so it should be installing exactly the same. It does build, but messes somehting up in the process. Have no idea why this could be happening Any suggestions/pointers? my vite.config.ts looks like this:...

Using next-international makes the app forget the language.

I have my app built and deployed to cloudflare. I have added internationalization using next-international. When I change the language in local, it is kept, and the text is changed accordingly, but when I push the code and it is deployed in Cloudflare, it does not happen anymore. I could post a video if required. Or access to the deployed environment deployed in CF Pages....

Importing wrangler Error

https://website-cvf.pages.dev/ 2c9e1f7 6d2375e757659d4dbcefde50d88367ae ...
No description