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

Early hints on pages causing 504 errors

Hi, we are observing an increase of 504 errors after migrating a product to pages. This seems to be caused by early hints, as we see every request duplicated and with the user-agent "nginx-ssl early hints". These errors aren't shown in the cloudflare dashboars but rather in our logs which we get from logpush. Since we have monitoring on 5xx errors we noticed this increase and would like to resolve them. Our idea is to disable early hints for pages on our account (we noticed it happens for all the pages we have). Of course we are open to suggestions. Our devs have tried to configure the headers as that could've maybe solved the problem, but that didn't help https://developers.cloudflare.com/pages/configuration/early-hints/ ...

Vite with vite-plugin-wasm Deployment failed!

I have a demo project build with remix, vite(with vite-plugin-wasm) and wasm build fron rust wasm bindgen. all works in dev. but when deploy . Deployment failed! Failed to publish your Function. Got error: Uncaught SyntaxError: Unexpected reserved word at functionsWorker-0.12394576654725453.js:39:4...

Grant deployment read only access to ONE project in an account?

I need to give a developer access to read the build logs (mainly, so he can see why the build fails), but I don’t want him to see any domain level access or other domain specific settings. Nor should he be able to edit anything. Is it possible to see build logs on ONE page? If not, I saw that it’s possible to do this with API, is that the recommended way? For me to build some type of build tools myself to integrate with the API? Is this pluggable as a github action maybe?...

ERR_NAME_NOT_RESOLVED

My domain server is for the minecraft server, but I need it to redirect to another page in the browser. How to do it?

string-width build error with Astro?

Hey, so I updated Astro, and now my builds are getting this error ```ts 21:54:35.444 Executing user command: bun run build 21:54:35.714 $ astro check && astro build...

I am trying to delete few cloudflare pages but I keep getting An unknown error occured.

I am trying to delete few cloudflare pages but I keep getting An unknown error occured. Contact your account team or Cloudflare support: https://cfl.re/3WgEyrH. (Code: 8000000) . The URL for the pages projects are 1) https://pages-assets-0.pages.dev/ 2) https://pages-assets-1.pages.dev/ . I created those projects using npx wrangler. It was working fine till today afternoon and all of a sudden I am getting this issue

Domain fronting with Cloudflare Pages

I'm trying to replace one part of an existing website (hosted more traditionally) with a Cloudflare Pages site that has functions support as well, the functions are existing workers code I already have in deployment. From what I can see the recommended way to also serve static site with workers code is to transition it to pages but I'm finding some problems with it. Specifically my current worker is using routes (https://developers.cloudflare.com/workers/configuration/routing/routes/) to only run on specific paths and sometimes also pass through the request to the origin as necessary. I don't see both triggering on specific paths and passing to the origin being possible with Cloudflare Pages and Functions (custom domains only supports DNS records it seems and no pass through is documented to be possible). Essentially POST https://example.com/foo currently goes to the worker first then either get processed there and returned or forwarded to the origin to respond, I want to keep this behaviour. At the same time I want to add GET https://example.com/bar to serve a static page from Cloudflare Pages while GET https://example.com will still go through to my origin....

Trying to delete a cloudflare pages project

But getting the following error message: An unknown error occured. Contact your account team or Cloudflare support: https://cfl.re/3WgEyrH. (Code: 8000000) But I am not allowed to contact CF support as I have a free account, any suggestions?...

Error monitoring tool that works with Pages

Hey, the lack of persistent logging in Cloudflare Pages, along with its incompatibility with LogPush, makes it practically unusable for production apps. I can't find an error monitoring tool that integrates well with both Pages and the meta-framework I use, Remix. Is there any recommendation from Cloudflare on how to handle this?

Custom NPM Registry

I cannot deploy to pages because on of my pacakages is not on npmjs's registery, rather a custom URL to a hosted Registry. This Registry does not have auth and I know it's url. How do I tell pages to use this for the package I need to install from there? I've tried: - Reading the docs to no avail (confusing on what you even need to do)...

New to this, how to remove a static page i uploaded?

Hello I have a small site around 16MB, its mostly HTML5 static pages, i uploaded it as a zip and it works fine, how do i see the files or remove some of them i don't need? I don't seem to be able to do that. I see the files under assets uploaded

caches not found for next on pages

I'm following the cache guide to implement caching with NextJS, however I'm getting caches is not defined inside my route handler. What's the correct way to access the cache API in Next? And is this expected to work locally? ``` // Cloudflare caching const cache = caches.default...

Preview deployments under sub-domains

Hey folks! I created a staging.example.com sub-domain for my preview deployment instead of using web.pages.dev domains and followed this: https://community.cloudflare.com/t/subdomain-for-branch-not-working-error-code-522/475716 It now works, but as I use zero trust I got this error after entering my email to get the zero trust code. Any hint on what's going on?...

Build domains vs branch domain

I just had a quick question/confirmation I hope you'd be able to be able to help with. When deploying our pages applications to a preview branch, we receive a URL like abc123.myapp.pages.dev, where the prefix is a sort of has provided by cloudflare. What I've noticed is that these prefix's seem to be interchangeable with the branch name that was passed in. for example if i have a branch of "mybranch" everytime I deploy to this branch, i can access that preview via "mybranch.myapp.pages.dev". Am I correct in this and is it trustworthy to use that or for some reason and should not use these and only use the build hash that has been given to me via the build (abc123)? as im not sure this is documented much so wasnt sure if you'd recommend using the hash instead of the branch....

NextJS + Clerk Core 2 - 500s with Middleware

Cross-posting from the Clerk discord: https://discord.com/channels/856971667393609759/1264981867459907605 Minimal reproduction here: https://github.com/kalebpace/cfpages-clerkcore2-nextjs-500s/tree/main Hi all, just wanted to cross-post this issue here since it is unclear whether the underlying issue is in Clerks libs or some incompatibility with the Workers runtime. ...

next/og + Image Transformations - Unsupported image type: unknown

``` export const runtime = 'edge' import { ImageResponse } from 'next/og' import { Inter } from 'next/font/google' ...

dep problems sveltekit cloudflare-adapter when building

I can't build because of adapter-cloudflare's deps being wrong node modules? but the error must come from the adapter.... When I run build, it spits out many errors like: ``` ✘ [ERROR] Could not resolve "url"...

remove page action check from github commit

to remove that V or X simbol depending if the deployment was successfull or not, is there a way to do it instead of using git reset?

I want to configure cloudflare tunnel, but something went wrong

I configured cloudflare tunnel with config.yml on my local web server placed, but when I accessed to public domain in web browser, I encountered CNAME Cross-User Banned. I have only one cloudflare account so I didn't understand what is going on

Failed to delete a Pages instance

An unknown error occured. Contact your account team or Cloudflare support: https://cfl.re/3WgEyrH. (Code: 8000000) I've disconnected all bindings, both production and preview, including r2, d1, etc....