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

Deploying Remix Pages failed

The deploy stalls for a while on the first picture, before failing with this error on the second picture. When deploying with github actions, I get a weird experimental flag error, which won't go away even when changing the name of the flag (third picture)....

building pages failed

```18:30:12.333 Using v2 root directory strategy 18:30:12.359 Success: Finished cloning repository files 18:30:13.985 Checking for configuration in a wrangler.toml configuration file (BETA) 18:30:13.986
18:30:14.102 No wrangler.toml file found. Continuing....

Vite CI builds timing out

Hi, didn't want to hijack the other thread (Nuxt builds). My builds are also timing out since this week (?) - not sure if it is because pnpm package upgrades or not - Dependabot is keeping me busy haha. But locally all is fine. Vite 5.4.3....

How to host multiple pages under the same domain

Let's assume I have a monorepo where each project is a SvelteKit app running on pages. Let's say they run on app1.pages.dev, app2.pages.dev, app3.pages.dev, and so on. I now also have a worker that I deploy to handle all this. Before doing that I have to point out that one page is special, it runs on homepage.pages.dev and it will be the default page to show (when going to /, or any other non-app route)....

Is there a way to view analytics of a pages.dev domain?

I can see the analytics for our public domain used in production page, but I would also want to get the network analytics for our .pages.dev domain, is this possible?

How can I access my d1 database in next on pages edge LOCALLY?

I have it working fine during deployment and build, but I can't seem to access it locally and there are no docs on it.

Increased limit on the number of pages for projects

I noticed that each CF account can currently create only 100 pages projects. I would like to increase this limit, but is there an additional charge for existing paid tiers? For example, would I need to subscribe to Pro for 1000 projects or Business for 5000 projects, etc.?

Turborepo with GitHub integration

* Site: https://memolens.app * AccountId: d3d0378e716fdb8eec266de86fa0e960 * Deployment ID: 81ac55f7-c5c8-4627-b9a4-d5b741c37ee6 I am trying to deploy a Turborepo package (Next.js) with a GitHub integration. When I do a local deploy npx @cloudflare/next-on-pages everything works fine, when I do by GitHub integration it fails saying In a non-interactive environment, it's necessary to set a CLOUDFLARE_API_TOKEN environment variable for wrangler to work....

hello

need help please I can't pay a domain on cloudflare I have try with PayPal and visa if someone can help me will be great thanks in advance...

SSL problems with my site (on HttpClients)

My site: https://getsolara.dev (content from pages) Account id: 744868c4248d80519f136af5bd35a044 Error: Generally there is just an SSL error when using HttpClients to access my sites endpoints. However, these errors do not happen in the browser. (This error doesn't happen for me, but for a large portion of my users) From cURL, the error is as follows: curl: (35) schannel: next InitializeSecurityContext failed: SEC_E_INVALID_TOKEN (0x80090308) - The token supplied to the function is invalid...

'Invalid redirect URL' for Cloudflare Access on custom domain

Hello, I've been struggling using cloudflare access behind a custom domain (cname to pages subdomain), similar to https://discord.com/channels/595317990191398933/1100012325169274960/1100012325169274960. What I am doing is checking if a user is logged in: ``` import { getIdentity } from "@cloudflare/pages-plugin-cloudflare-access/api";...

Configuring a monorepo

So i am looking to configure a monorepo for Cloudflare Pages, i have a Nextjs app under /apps/web which will need @cloudflare/next-on-pages to build. However i can't figure out how to get it all working. My repo: https://github.com/jacobsamo/BuzzTrip...

Custom "Token Vault" Strategy Help

I'm creating an API for a project of mine, but I think I need a more efficient auth system. There are certain routes in my functions directory that require an API token to use, but I'm storing these tokens in a text array in the Pages environmental variables. Is there a way I can do this at a more top-level system?...

Ray ID: 8c021b62afb03b6f

CloudFlare doesn't recogzine me as a human and I can't get into soem of my websites. I use a VPN. Any solutions???

ENV variables with wrangler pages CLI (VITE REACT)

How do I add env variables to a deployment of a pages application? I am writing a github action that is suppossed to deploy my pages application, and I am trying to grap some secrets from the repo, and add them as env variables for the pages. I have tried this: ```yaml - name: Deploy to Cloudflare Pages working-directory: ./apps/frontend...

Documentation on using wrangler.toml to configure a Pages project (not workers/functions)

According to this article, it should be possible to use a wrangler.toml to configure a Pages project: https://blog.cloudflare.com/pages-workers-integrations-monorepos-nextjs-wrangler/ So I ran pnpm dlx wrangler@latest pages download config <my-project-name> But the downloaded wrangler.toml is missing fields for things like my build command or the project root directory, and I cannot find any documentation on Cloudflare about this....

404.html Files in Subdirectories Not Used

I have a multilingual Hugo website on Cloudflare Pages. I have a 404.html file at the root and a localized version under each lang subdirectory (ie. /en/404.html, /de/404.html and so forth). The documentation says:
Pages will then attempt to find the closest 404 page. If one is not found in the same directory as the route you are currently requesting, it will continue to look up the directory tree for a matching 404.html file, ending in /404.html.
This implies that if the URL is something like example.com/de/foobar, it should use the 404.html under the /de/ directory. However, it looks like the 404.html at the root is always used....

This repository is being used for a Cloudflare Pages project on a different Cloudflare account

We are using Pages for other sites already, but this one repo we have acts up and says its already on another account. However we cannot find any other pages project linked to this repo, and neither does it display a ci status for it on github. Cloudflare has access to all repos in the org via the cloudflare pages app. Not sure who to proceed here....

Error: Failed to publish your Function. Got error: Error 8000057: Rule (%s) in `routes.json` is over

Hello, I would like to deploy my website under Nuxt 3 under Cloudflare pages with yarn run build, but I've got this error
Error: Failed to publish your Function. Got error: Error 8000057: Rule (%s) in `routes.json` is over the 100 character limit. Refer to https://cfl.re/3FsE4aF.
Error: Failed to publish your Function. Got error: Error 8000057: Rule (%s) in `routes.json` is over the 100 character limit. Refer to https://cfl.re/3FsE4aF.
...