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

Attempting to locate DNS IPV4 Address

Hi, so I'm pretty new to all of this stuff, and I've been wondering and trying to find out where I can locate the IPV4 address. I've tried looking on my hosting site off of Porcupun static hosting, but I'm unable to find it. If someone could help, please.

Pages Build Process: replace npm install with bun install

is there any way to do this? I already set the build command to bun run build but I can't find ways to change the npm install command

How to use --persist-to flag when starting local FE with e.g., vite dev?

I have a monorepo where a number of packages share the same D1, KV, etc. For local DX it would be great to be able to create one local version and reuse it across all packages. This is achievable when starting local Workers etc by appending the --persist-to ../path/here flag to wrangler dev. Is there an equivalent way to point my frontend to the persisted resource? I.e., start the SvelteKit dev server (via vite dev) and have it use the persisted resource instead of create another .wrangler/ directory in the FE directory...

PNPM v9

Is there any way to use pnpm v9 in Cloudflare Pages other than manually installing it using npm install?

Accessing a deployment via its alias works but by its deployment URL produces error

I have pushed a deployment to Cloudflare pages and part of the deployment artificat, there are two links: an alias such as my-feature-branch.some-poc-ui-service.pages.dev and https://ac459a08.some-poc-ui-service.pages.dev. If I access this application from the first (feature-branch) link it works without issue. However, if I access the application from the second like that has. the randomly generated base URL, I run into CORS issues with respect to some third party SDK. Any thoughts?...

Pages middleware with nextjs and wrangler pages dev

Hello, I have a nextjs app, that uses app router. I've tried adding pages middleware to it, but I just cannot get it to work locally. I've added functions/_middleware.ts file in the root of the project, right next to package.json. It's just an example copied over from the docs with an additional console.log. I run command: pnpm wrangler pages dev ...

Increase limit on the number of projects

Hi, I have sent a request to increase the number of projects limit through your google form last Thursday (31 Oct 2024). It has been almost a week now, and I have not heard back from you. May I get an update please?...

How to only install production dependencies?

Hi, I'm using cloudflare pages to deploy a project, but I've noticed it installs all dependencies to build the project (including dev dependencies). Is there any way to configure it to only install the production dependencies? It's using npm....

TypeError: fetch failed during Pages Build

I have an eleventy site and during build, I reach out to one of my API's to fetch some data. All other APIs or URL seem to work but not the one in my zone. So my pages is on the root doman: example.com and I have a A Record setup pointing to an IP address of the remote server (not a worker): api.example.com ...

One of my pages is showing older versions

Hello! Does anyone know why one of my pages is showing an older version when I use a custom domain? It works perfectly on https://rockybot.pages.dev, but when I go to my custom domain, the "commands" page shows an older version, while everything else works fine. I tested it, and about 1 in 30 times when I load the page, it shows the correct version....

problem with build

the build is deployed but the website get 404 error

API Token to update a single cloudflare pages app

hey I have a quick question. Is it possible to setup a API token that can only update a single pages app? I think I only saw how to setup a token that has access to all pages apps but not for only a single one...

SEC_ERROR_UNKNOWN_ISSUER

Hey, I've used cloudflare a lot but now i was uploading another site (zoutube.net)! Everything was going fine but now i get the error SEC_ERROR_UNKNOWN_ISSUER . I've never had this problem before. And honestly don't know where i should start looking! Thanks in advance!...

Can't deploy from multiple accounts/organizations

I added my personal account, and 3 organizations to cloudflare from my GitHub, and on this dropdown I can only select one, I can't deploy from the other 3, is this a bug?

MP4 not playing on iOS devices due to byte range requests

I've been trying to fix this issue for a few days now to no avail. My website works well on Windows and Android devices but fails to load MP4 videos on iOS devices. There are two videos, both around 8MB and 2MB in size. I tried to add a page rule to bypass caching, but I think I couldn't get this to work because I have no domain yet. However, I don't want to do all the work of transferring my domain without knowing if this issue will persist or not. Is there another way to configure the servers to allow byte-range requests for MP4 videos? Or how else can I handle this issue? https://company-drive-gmbh.pages.dev/...

How to proxy a cloudflare hosted pages app to show on my subdomain which is managed by nginx?

I have a cloudflare pages app, let's call it dashboard.pages.dev. I am using nginx as my reverse proxy. Let's say my main server where nginx is running and managing requests is accessible on the domain example.com. I want to access my pages app on a subdomain of example.com . How do i do that? I am using the following configuration for the pages app like so:...

Bug: Fetch() returns nonsense 307 when called under a pages domain

Fun bug for you. foo.domain.com is a pages domain - works great btw! I mounted a worker at foo.domain.com/api that does a fetch - the fetch target is a digital ocean load balancer at foo-api.domain.com In this case, domain.com is managed by cloudflare but foo-api.domain.com has NS pointed to digital ocean....

Configure /studio/index.html to handle requests to /studio/*

- https://mysiek-pl.pages.dev (users should access from https://mysiek.pl) - Deployment ID: a1e49976-0fb4-4d4b-969d-0acd72e37e57 - Account ID: 5f2dea697c8022bf9f348c2dba9433b2 I'm using Cloudflare pages to host a static website built with Astro. It's integrated with Sanity.io CMS system - this integration exposes a React SPA on URLs beginning with /studio/. This SPA works fine, but if you refresh the page, client is redirected to 404 error page....

Nextjs multi-zone deployment?

Do pages support nextjs' multi-zone routing? If so, is there an article or a repo showcasing how one can host both an app (and a blog for example) on the same domain using cf pages and two different instances of nextjs?...