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

Custom domains always errors with Inactive (Error)

I have custom domains setup and have 10x verified the DNS is correct. But no matter what the domain keeps coming up with Inactive (Error). Is there any debugging here? We're trying to launch and unsure what's wrong. I have verified the deployment is working fine....
No description

Adding custom domain is blocked

When trying to add a custom domain to a project, it is being blocked. If I try a subdomain that has never been used, it will briefly display an orange indicator with verifying, shortly followed by a grey indicator and "Error (Inactive)", otherwise it will immediately show that error. The zone is managed by Cloudflare so the CNAME is created automatically as part of adding the custom domain in the Pages project. Looking in the audit log, I see that it is being blocked ("Pending to blocked") but I can't see any information as to why, e.g....

Not loading files in files

Hello. I have my react-website. I used /dist because I am using react + vite. The problem is that I have files of images inside main image folder. As you can see on pictures. What are steps to build it to work?
No description

My Custom domain efashion.club going to Plesk page

My domain https://efashion.club is redirecting to a plesk domain. My page is https://efashion.pages.dev/ In my DNS: CNAME efashion.club to...

Proxied CNAME to pages deployment returns host error 522

I am using the environments feature of Pages to setup a dev/staging/prod workflow based on repo branches. The production branch works just fine. However, when I create a cname in my main domain (iom.ai) and point it to the branch specific or deployment specific URLs, I get a "Connection timed out" 522 error (Cloudflare Ray ID: 80c46d9b483d2279). Doesn't work - CNAME: dev.iom.ai => dev.marketplace-front-end.pages.dev Doesn't work - CNAME: dev.iom.ai => c0a2ff51.marketplace-front-end.pages.dev Does work - CNAME: www.iom.ai => marketplace-front-end.pages.dev...

wrangler pages dev when functions are not in root?

I keep my pages functions in a subfolder of my application, not at the top-level, but that causes problems when calling npx wrangler pages dev. I can't point it to that folder, or else the app does not start correctly (I get 404's), and I can't use npx wrangler pages dev -- <COMMAND> or else my functions are not found. Is there any way to support this structure?

Please wait while your request is

HELP. When I make a POST with JQuery, it gives me the following page as a response: Please wait while your request is being verified... PAGE: actualizar-datos.ser.pe...

Using asdf.xn--q9jyb4c for pages

Hello it seems I cannot use Internationalized Domain Names for cloudflare pages. Is this correct?

How can I know the IPv4 of my Cloudflare hosting to apply it to the DNS?

Alo I have a domain and hosting with Cloudflare but it can show it.

nodejs_compat compatibility-flags flags not working for Pages functions

I've added nodejs_compat to both prod and preview in the UI but every deploy fails with these errors Add the "nodejs_compat" compatibility flag to your Pages project to enable Node.js compatibility. I can run it fine locally using --node-compat...

Sveltekit + Cloudflare Pages + Resend

Hello! I've been banging my head against a wall as i don't know how to go about finding out whats wrong: I've written a server.js file with a POST that when called sends and email out. It works in local development but once i commit to the git repository and it is deployed on cloudflare pages when i click the button to test send the mail, the console logs a
'{message: 'Internal Error'}message: "Internal Error"[[Prototype]]: Object'
'{message: 'Internal Error'}message: "Internal Error"[[Prototype]]: Object'
along with a ...

`Reflect.get called on non-object` error when using OpenAI library in NextJS

I'm having issues in getting OpenAI library to work in NextJS project on Cloudflare Pages. I got the following error in workers log stream when calling the API endpoint on NextJS app: ```json { "message": [...

Does anyone want to work with a Korean company?

Hello. We are a team working on creating a service that connects IT companies in South Korea with developers from around the world. If you'd like to try working on IT projects with South Korean companies regardless of language, age, gender, or nationality, we would appreciate it if you could answer a few questions in the survey below. https://walla.my/survey/Nz5hJtxbYP9CSFhCjKEf...

is it safe to re-route DNS to another pages project?

Hi there. I have two pages projects, let's call them "aaa.pages.dev" and "bbb.pages.dev". For the project "aaa.pages.dev" I recently added a custom domain. My DNS entry looks like CNAME | aaa.com | aaa.pages.dev ...

How Rules are working?

For example in Cloudflare: I have https://example.com/assets/image/keepcalm.jpg and I want to simplify URL like https://example.com/keepcalm.jpg (as you see I want to access keepcalm.jpg without /assets/image/ and also without changing the actual directory structure) ...

Having double slashes in url, `//` does not invoke middleware in the `/functions` – sample code 👇

I am using middleware in /functions to secure some pages. But when the url has double slashes //, wrangler doesn't run the middleware for the url. I have replicated the issue in a minimal repo here – https://github.com/Shivam010/cloudflare-double-slashes-issue There's a middleware in /functions/secure directory to be applied on all routes of /secure – https://github.com/Shivam010/cloudflare-double-slashes-issue/blob/main/functions/secure/_middleware.js...

Functions directory not working with nextjs app.

Hi, I have set up and deployed a nextjs app following https://developers.cloudflare.com/pages/framework-guides/deploy-a-nextjs-site/ However, none of my functions from /functions are appearing in the build. Not sure why. When building locally using next-on-pages it generates a _workers.js/index.js files which I believe is what is supposed to happen. However none of my functions or middleware are existent in the build or deployment....

Deployment-specific URLs give 404 while custom domain alias works fine

For every build after a certain time (somewhere around 5:00 pm CDT) the deployment-specific URLs give a 404 while the aliased custom domain URL works fine. For instance: - https://4f2edf67.smm-org.pages.dev gives a 404 while https://new.smm.org and https://smm-org.pages.dev work fine. - All preview build URLs give a 404: e.g. https://4e055b2d.smm-org.pages.dev and the branch alias https://cloudflare-pages-preview.smm-org.pages.dev How should I further troubleshoot this one?...

file limit

whats the amout of files i can upload to cl pages?

Cant fetch Stripe checkout session line items with Stripe lib or fetch, not returning any errors

Request verification is working fine since I updated to use both webCrypto = Stripe.createSubtleCryptoProvider() and
httpClient: Stripe.createFetchHttpClient() (though latter is now obsolete/unnecessary and verification works without it) ...