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

Cloudflare pages hosting issue

Cloudflare pages stopped working due to due to account being downgraded to free tier by mistake, after resolving the issue the account is again upgraded to the right paid tier but the hosting is still not working. Trying to access the production or preview channels on the projects in the said account, we are getting a 404 and only the pre-rendered files seem to work, anything that requires function invocation is failing. any suggestions on what could be the issue?...

cloudflare pages and subfolder

Hello, I have a project running on cloudflare pages and I need a subfolder to resolve to another service. For example: example.com works on cloudflares pages, but example.com/news resolves to another server. Is this possible? Or will I have to take everything to an nginx? Thank you so much...

Doesn't import.meta.url work in cloudflare pages? i am getting this error

I am having a nuxt 3.15 app. I can build and preview it in my local pc. I am trying to deploy it to cloudflare pages. I am getting this error when trying to preview it on localhost using wrangler:
Uncaught TypeError: Invalid URL string.
Uncaught TypeError: Invalid URL string.
...

CPU time when calling external APIs

In Cloudflare pages functions, if I call an external API, does the round trip time of the request count as CPU time towards the CPU time limit? If so, can it be solved in any way?

my website not work

hallo my website not work https://cbausrasten.net (ping me)

How to deploy to Cloudflare Pages programmatically?

I'm making a website builder that allows users to deploy their website to cloudflare pages as https://<uuid>.<website-builder>.com . How do I go about this? Do I use the Cloudflare Create Project API endpoint (https://developers.cloudflare.com/api/python/resources/pages/) to do this? If so, how do I upload the code into to the project?...

Question About Next.js Deployment on Cloudflare Pages

Hi [Support/Team], I’m deploying a Next.js application to Cloudflare using Cloudflare Pages with the @Cloudflare/next-on-pages adapter. I’d like to confirm how the deployment works in terms of asset distribution. • Are the static assets (pre-built HTML, images, etc.) and the Worker script deployed across Cloudflare’s global network? • Does Cloudflare automatically distribute these files to edge locations worldwide for optimal performance, or is there any configuration needed to ensure this?...

3environments in cf-pages

I want to create 3 environments in CF pages, because i have different envs for this environments how i can do this? Just using different envs for my 3 branches work too...

Preserve previous build artifacts when using manual uploads

We currently build our Vite static app and push the build assets using the Wrangler CLI in GitHub actions. We build it ourselves because there are some special build parameters and processes we use that aren't supported by CF Pages. However, when we push a new release, all previous build chunk files are cleared out, causing the application to break for users on page when attempting to load routes using the JS chunks. This doesn't happen if CF Pages is the one to build it, in those situations CF Pages does keep the old assets around for an undertmined length of time....

Pages - uv

Is there any appetite from community or Cloudflare to add support for uv for Pages? I would welcome that, if it was available to use.

Pages for mkdocs

I'm using Pages to deploy my python docs written in mkdocs. It seems that Pages has pip install . baked into it, which installs all my dependencies (not only mkdocs) - which are quite heavy. Is there a way to instruct Pages to inly install mkdocs and not main pages dependencies?

Cannot find how to initiate GitHub connection for existing Pages project

I cannot find where in the Cloudflare dashboard I'm supposed to go to connect GitHub to an existing Pages project. Here is what the documentation says:
To set up builds for your Worker: 1. Select your Worker in the Workers & Pages Dashboard ↗ and navigate to Settings > Build....

Force build on new commit

My cloudflare pages keeps trying to build on a broken commit, but I can't see an option to force it to use a new commit ID? Am I blind or?
No description

Cloudflare Pages Functions Metrics Max Retention Time - 3 months?

In the cloudflare functions documentation, it states that " Worker metrics can be inspected for up to three months in the past in maximum increments of one week" However, when i go to my cf dashboard for my pages & functions project, I can move my start date back to a maximum of January 17th, and the rest of the dates before that are not available. My current prod deployment was deployed about a month ago and the overall project has been up with functions for almost a year now. ...
No description

How to set environment variables in `wrangler pages dev` for Nuxt + Cloudflare Pages project?

I'm building a Nuxt 3 application deployed on Cloudflare Pages, and I'm having trouble getting environment variables to work with wrangler pages dev dist/ during local development. Setup - Nuxt: ^3.15.3...

Increase limit of pages per repo to 15

Hello, i am in need of increasing the limit of pages for my account, we have multiple websites that resides on different branches, i tried the Limit Increase Request Form, but no there were no replies so far.

build cache enabel with wrangler json file

is this a feature supported and if not will it be?

Using Environment Variables for Workers API URLs

We have API Workers and WebSocket Worker for each of our environments (dev, test, prod). CI/CD for Workers and Pages with GitHub almost* works great. Because of the limitation of not being able to define different environment variables on different preview deployments and wanting custom domains for each, we have separate compute Pages configured for each env. *The React webapp on Pages needs CF environment variables for its corresponding Workers API URLs....

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...
Next