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

Can I whitelist IPs to pass through Cloudflare's DDoS protection for Pages?

One of our client sites at the moment on Netlify is having a issues, where their bank tries to run a PCI compliance scan, but the requests from that scan get blocked by Netlify, likely as it seems like an attack. From my understanding, it makes quite a few simultaneous requests. Netlify has said that running any sort of scan like this is against their terms, and will only allow it on the enterprise plan if we agree on a time window with them in advance. The scan will be done every 3 months so this would really not be ideal. The bank asked if we could just whitelist their IPs but that is not possible on Netlify. Could we do this if we deployed the site on Cloudflare Pages + Workers instead?...

free(): invalid size in Cloudflare Pages build

I'm getting the following error in Cloudflare Pages:
free(): invalid size
free(): invalid size
Works fine locally in Build. What could this be?...

Build script permissions issue

I've been happily using my bash-based build script for years, and then suddenly with no changes to it, all the sed commands in it started throwing errors as if sed didn't have the proper permissions to create its temp files. For example, the command:
sed -i "1,4d" dynamic-page-loader.tsv
sed -i "1,4d" dynamic-page-loader.tsv
returns this error in the build logs:
sed: preserving permissions for ‘./sedjZDkwD’: Permission denied
sed: preserving permissions for ‘./sedjZDkwD’: Permission denied
Anyone seen anything like this before? Btw, I tried created a temp folder within my build folder to see if that would help, but it didn't....

Sveltekit does not get the platform variable when processing api request

Hello I have a Cloudflare Pages App using Sveltekit and I want to integrate R2. I have configured my wrangler.toml ```TOML name = "<name>"...

Disable https for specific api routes?

I have an API which a very old game is trying to send data to. This old application (circa 2004) cannot handle HTTPS. It must use HTTP. Is there a way to configure my wrangler.toml to specify specific routes for my Pages project to use HTTP instead of HTTPS?...

Using a custom domain from a different cloudflare account

Hello there, a simple query: Is it possible to add a custom domain (apex) to my Pages app when the domain’s DNS is managed from a separate cloudflare account or do they need to be within the same account for that to work? ...

Nuxt and d1 context reference missing

Hi there, I have a thread in the general discussing that doesn't seemt to be getting much love https://discord.com/channels/595317990191398933/1207746743177969685/1207746745346293790 Could someone please help me help me work out what I'm missing here? ...

Multiple set-cookie headers merged into one

I am using Cloudflare Pages with Next.js + Auth.js for OAuth. Every time I try to log in with (let's say) Google, it's not possible, because the callback response has the session-token cookie merged into the same Set-Cookie directive as pkce.code_verifier. On development I get two Set-cookie headers instead of only one and it works as expected. How can I make sure those headers don't get merged?

Site down

I tried moving my domain to this account, but it won't let me add the lacuna.to domain to Cloudflare Pages, and as a result the website is down

Reflect.get gets called on a non-object using Drizzle orm

This is related to this github issue: https://github.com/cloudflare/next-on-pages/issues/499 I'm using Drizzle ORM with planetscale. I get this error: Reflect.get called on non-object From the issue I couldn't find any workarounds to fix this. ...

Open a browser shows refused to connect

I launched the project with this command: wrangler pages dev ./ I am using wrangler version: 3.15.0 But, if I open a browser, it shows me ``` This site can't be reached...
No description

Error: Cannot perform I/O on behalf of a different request

Hi Everyone I have a project where i'm using sveltekit but i had a problem where when clicking back or forward in the browser is causing internal error 500? after i get the internal error 500 i try to refresh (ctrl + r) it went normal. I have 2 webapps that have this issues, and weirdly its happening in the production build that i already deploy in the cloudflare pages, dev and local build environment is fine....

Pages Deployment Error

My Cloudflare Pages Project built with Remix is often failing to deploy with below error, is there anyway to increase startup limit or find which one is creating the problem? ```txt 15:09:33.006 ✨ Upload complete!...
No description

Using past deployments in production?

Can the past deployments be used in production, or are there limitations (e.g. caching) when using the deployment specific domains? How long do deployments stay available?...

can I create a page rule to redirect for example domain.com/r2/ to a public domain r2 bucket?

as the message said is it posible to create a page rule redirect so when i type in that url it will automatically redirect me to my public r2 bucket url so i can download the file easier

app.osmosis.zone

When entering the website app.osmosis.zone, I was denied entry, saying my IP address was blocked. Can someone help what to do7

build limit problem

Failed: build exceeded the time limit and was terminated. Refer to https://developers.cloudflare.com/pages/platform/limits/#builds for build limits I added webhook but how to avoid the termination after 20 min

522 Error - Custom domain and www. won't redirect.

Hello, Today I was working on my site and noticed that www. doesn't redirect as I expect it to. The domain in question is https://debauc.us...
No description