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

run-p: not found

Project with Vue3 + TypeScript, the first time make deploy, functioning. But, if create a new feature, error in the build: sh: 1: run-p: not found...

Randomly got Error code 522 on my website

Hi, I have had my website online for some months now with Cloudflare Pages and everything went well until today when I saw Connection timed out Error code 522, can anybody help because it's urgent? Have not made any changes in the website in a week...

Tagging causes error on wrangler - API token not available

We have a private gitlab that is pushing to cloudlfare pages using wrangler with the cloudlfare API. it works fine but if we tag our releases it throws an error Is this a limitation of our setup, or something else?...
No description

How to setup Redirects for SPA with multiple directories?

Hi there. I have recently migrated an Angular application (SPA) to Cloudflare Pages. - Project: stream-portal.pages.dev...

import_mongoose2.connect is not a function

my page: dugsdemos.pages.dev deployment ID and accound ID I don't know how to find The error: import_mongoose2.connect is not a function...

HTTP Error 500 on Nuxt 3 Site Deployed via Cloudflare Pages: Suspected Environment Variable Issues

Hello everyone, I'm currently experiencing an issue with my Nuxt 3 website deployed via Cloudflare Pages. Despite the logs showing a successful deploy (✅ Deploy successful!) and everything working fine locally, I'm encountering an HTTP Error Code 500 with the message "This page is temporarily unavailable" on the live site. There are no errors in the logs that would indicate what's causing this. I suspect it might be related to Environment Variables (NODE_ENV, CLOUDFLARE_ANALYTICS_TOKEN, CLOUDFLARE_TURNSTILE_SITE_KEY, CLOUDFLARE_TURNSTILE_SECRET_KEY, and SECURITY_SCRF_SECRET) not being set or accessed correctly. Unfortunately, without logs, I'm somewhat in the dark here. Has anyone encountered a similar issue or have suggestions on how to troubleshoot this problem?...
No description

GitHub Automatic Deployments not working

I sent changes in two different repositories and the deploy didn't happen...

Post deployment action

Hi. I need to perform a GET request to my prerender server after each successful deploy. I tried sending a fetch request on the top level of my worker but that fetch request is being intercepted by the worker itself. So maybe I need something like a post-deploy script or something similar....

EACCES: permission denied, scandir '/lost+found'

How can I solve this problem? ```yml on: [push] ...

The Workers runtime failed to start on Fedora Linux

Hello! I'm deploying a vanilla Astro website using pages. I'm now trying to connect that website to a D1 instance. When I start wrangler, I see an error stating that "✘ [ERROR] MiniflareCoreError [ERR_RUNTIME_FAILURE]: The Workers runtime failed to start. There is likely additional logging output above." The D1 binding I set up in the console is properly registered locally, and there are no additional logs related to the startup failure. I'm currently running the cloudflare plugin in advanced mode. I've attempted to follow these instructions to no avail:...

I have bought a domain on CloudFlare and created an R2 bucket, but I am lost in config...

Hello everyone, I hope you are great, Please I need some help, I am completely lost... I have bought a domain on CloudFlare and created an R2 bucket, I added an html page that serves as a welcome page, now I want to link the R2 Bucket and be able to access other files of the bucket through my domain, but that's not working?...

does website go down?

so does the pages website will go down if the 100k request limit exceedes like i dont see any point of it go down because pages does no requests

Module not found

I got this when making the cloudflare page
No description

CORS errors with wrangler

So I'm doing some local development where I have a Vite dev server and a wrangler ditto for the functions. Unfortunately the wrangler server doesn't return proper cors headers and I don't see any way to configure it. I've seen some dangerous suggestions online where you rewrite the headers in your function, but that would go out in production too and that's definitely not desireable. So, is there a way to send "allow everything" headers with wrangler by default? The reason I don't use the automated "pass through" is because wranger doesn't handle websockets, so HMR breaks....

tunnel

Hi i setup Cloudflare tunnel service and its working great, the questions is, my domain for example Josef.com in tunnel i should add example.josef.com is there a way to keep it josef.com? even if its paid service at less i want to know if there is a better way and thanks....

Add external partner to visit a Cloudflare Pages site ind Development mode?

Hey, I'm looking to add an external partner to visit a Cloudflare Pages web application that is in development mode, I don't want the person to have access to anything in cloudflare, only the web app. I tried creating polcies in Zero Trust, but nothing seems to work.

I bought a domain from cloudflare a year ago and now i want to update my web app

So my website is currently running as a static page, but I want to upload a new version of it. However cloudflare changed a lot and I'm lost in the new interface. Can anyone guide me where exactly should i go once I'm inside the overview tab of my website? Thanks a lot and sorry for the basic question but I can't find anything online

Accessing Cache API Typescript

In the cache API documentation (https://developers.cloudflare.com/workers/runtime-apis/cache/#accessing-cache), it says to access the cache via a global variable. However the examples show a third parameter in the fetch method. This parameter doesn't exist in my Typescript definition that wrangler generated. Which is the correct way to access the Cache API? Also if I use the Cache API should I disable edge caching via page rules for the route?...

Using SSR giving http 500

Hey guys, I'm currently using SSG in my production branch, and then I have a preview branch that is setup for SSR and they're based on an environment variable. The SSR version seems to run fine in dev mode, the reason I'm using SSR for my preview branch is so that I can get fast updates in my CMS preview. I have a github action that syncs my main branch changes with the SSR branch. When I deploy to cloudflare I get an http 500 error. I have my env vars setup and everything, is it that I don't have a cloudflare worker setup?...