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

astro ssr (on demand) with supabase tries requiring `ws` module and errors

I can't find any examples of setting up supabase with ssr for astro + pages. Getting this error: ``` (error) 15:18:06 [ERROR] ReferenceError: require is not defined...

Astro app can call Mailgun api on local server, but not on CF Pages deployment?

I have an Astro project that calls the Mailgun sending api to email me the data from form submissions (env variables accessed through the "astro:env" api), and it works completely fine while running on my local dev server, but after deployment to CF Pages ("salvean.pages.dev" or just "salvean.com"), I catch an "Error: Bad Request" with form submissions calling the Mailgun api. I have also verified that my site is able to access my secret env variables on CF Pages. My DNS records for sending via...

Update my files

Hi everyone! I previously deployed my site to Cloudflare Pages using manual upload. Now I want to update my website by replacing the old files with a new version. I need a guide on how to to upload the new files without deleting the entire project or re-adding my custom domain? I just want to replace the old zip file with the new one Thanks in advance for your help!...

cloudflare wont verify me as human

I've been stuck on thins page for 3 days and don't know why it wont verify me I've tried all of what google told me and it still wont work pls give me some suggestions ❤️

Migrating Pages as-is to WOrkers breaks private Git submodules

As described, the project is using private GitHub repo git@github.com:Vulnetix/vulnetix.git That repo has a gitmodules file [submodule "api"]...

Wrangler-action@v3 still not auto detecting pages deployments

This results in
It looks like you've run a Workers-specific command in a Pages project.
It looks like you've run a Workers-specific command in a Pages project.
... Can't seem to find a way around this.

Does Pro make Pages builds faster?

We're struggling with the pages build speeds (for both preview and production builds) and debating whether to upgrade. Would only make sense for us if the "Queued" times are drastically reduced - is this the case with the paid plan?

Billing not working

My r2 is not working my payment not Proceeding further when i click on pay its again showing the same when i click on payment it again loads the same page Your subscription to R2 was previously removed. In order to access your buckets, please add the R2 subscription back to your account. To check your account's billing status, visit Billing...

Account Stuck in LIMBO - Need To Update My Nameservers Before My Domain is DELETED!! :0

I am currently stuck between accounts and am having nameserver issues. Ive contacted support via email (4 seperate emails) 3 days ago, stating my issue and they havent got back to me! :c I have a free account so im not sure if that has anything to do with it... my domain is registered with Cloudflare Registrar, but tied to multiple Cloudflare accounts, therefore stuck in limbo. My domain will be deleted in 23 days if my nameservers aren't updated and this has me really worried. If anyone can help me I would be incredibly thankful. ...

pages domain not showing

I have a pages domain setup and working, its not showing in the overview just a couple of workers what am I missing?

Help!

Hi ! Ive added my domain to my website,but it doesnt want to sincronise.. please help

Domain dns records

Hi guys, I added my domain to cloudflare today and I am able to access my website but when i do www. it does not work. how do i fix this?

Environment variables not accessible in Pages Function when deployed with wrangler

We're moving from the Cloudflare Pages GitHub integration to building on GHA and deploying via wrangler, but in our testing, in the Preview link generated by the wrangler deployment, the Pages Function no longer has access to an env variable that continues to work just fine via the GitHub integration: ``` const handleRequest = async ({ next, request, env }) => { const variable = env.VARIABLE; // works with GH integration, undefined via wrangler...

Why is pages so good??

I used netlify and vercel and it was dogwater. I Like cloudflare

Wrangler setup for Gitlab integration

Is there a way to setup a gitlab integration that is static in the wrangler config file? It seems I can't do it this way and have to go to the console to do it.

Wrangler environment variables are undefined

I followed the Astro guide (https://developers.cloudflare.com/pages/framework-guides/deploy-an-astro-site/) and I tried setting an env var in wrangler.json and accessed it with Astro.locals.runtime.env.MY_VARIABLE and it works in dev but it is undefined in preview/build. Steps to reproduce: 1. Create the project with
yarn create cloudflare my-astro-app --framework=astro --platform=pages
yarn create cloudflare my-astro-app --framework=astro --platform=pages
2. Uncomment the like
"vars": { "MY_VARIABLE": "production_value" },
"vars": { "MY_VARIABLE": "production_value" },
in wrangler.json and add the comma above it. 3. Make the start of src/components/Welcome.astro the following:...

Limbo

no idea if this is the right channel for asking help for the thing i'm asking but i need help on cloudflare anti-ddos protected sites. everytime when a site has this cloudflare antiddos protected software, i'd be stuck on the verification screen for hours on end. please help (also sorry if not right channel)

Override default npm ci --progress=false

i want to set it to npm install --optional=false, so it doesn't install optional dependency and cause error. So how can i change the default. I beleive that this is what's causing a lot of problem

How to Reconfigure Repository Location for a Pages Project Without Deleting It

Hi everyone, I'm looking for guidance on how to change the repository location for an existing Pages project without deleting the project entirely. I want to point it to a new repo or directory while keeping the current setup intact. Has anyone done this before? Any step-by-step advice or best practices would be greatly appreciated!
Thanks in advance!...