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

wrangler pages dev --no-bundle causing EPERM: operation not permitted, scandir

Getting EPERM issue on my mac, while running pages dev. Without the no-bundle option things work. ``` $ npx wrangler pages dev --no-bundle --compatibility-date=2023-05-18 -- npm run dev:cmd Running npm run dev:cmd......

wrangler pages dev --no-bundle

Does wrangler page dev support no-bundle option? Doesn't look like it does, just want to make sure. I have some fairly complex workers that I run esbuild on before outputting them into the functions folder. The extra buildstep afterwards seems unecessary. Any suggestions?...

Cannot access KV namespace locally

Hi. How i can access KV data locally in pages? It always returns null. It works on production. however locally does not. wrangler pages dev --local-protocol=http --compatibility-flag=nodejs_compat --compatibility-date=2023-06-22 --proxy 5173 --binding MODE='development' --kv=<namespace> -- npm run dev Using this in terminal returns correct keys....

How to serve static assets and turn "Hello World Worker" c3 template into a Pages project?

Hi I just created a new project using c3 and no framework. I chose the option of "Hello World worker" in the c2 wizard. I want to host this on Pages and use some static assets. I am not sure how to do either. For static assets, I have created a root level folder called "pub" and added my static assets there....

How to change the domain used for deploy previews?

Is this even possible? Example: My site's name is my-awesome-site but the auto-created cloudflare dev domain for it is my-awesome-site-5kw.pages.dev. I'd like to change it to be my-awesome-site.pages.dev. Is this possible? I initially created my Pages project directly via Wrangler but deleted and recreated it via Git. When creating it via Wrangler I was able to customize this. Now I'm not. Is this a limitation of using the Git integration?...

submodule can't pull new version

I am using hugo and the themes in the submodule, now i am already update my submodule, but pages deployment always use the old versions submodule, so what should i do to let pages update my submodule? or how can i use 「git submodule update --init --recursive」any one help me ?

Custom Domain Breaks Website

I am getting this weird glitch when viewing a Pages project using .pages.dev domain, the website I am making works. When using a custom domain it breaks? Anyone know why this is...

Github pages

I uploaded my .js,.css,.html file to github its not in a .zip or anything their 3 different files. I uploaded it to cloudflare and then added a CNAME type and making the target the biolink-4.pages.dev or something like it told me. But none of my websites I go to works.

Issue re-adding deleted custom domain

I've tried adding a custom domain again after deleting it and i got the following error:
You have already added this custom domain. Select another custom domain or check your project configuration.
You have already added this custom domain. Select another custom domain or check your project configuration.
...

Pages functions access

Hello everyone, I'm using pages to host a Gatsby site and I'm using the functions directory to handle the contact form post requests. Are these functions allow requests only from this project or I have to restrict it somehow so the functions endpoint block requests from another project/domain?...

Trouble with script loading

I'm having trouble with script loading from cdn.domain.com (R2) and Cloudflare pages on a custom domain which is domain.com (for example). On the url pages.dev, the scripts are correctly loaded from the CDN. Via the custom domain, it's as if they were in the public folder. Example:...

Size of Astro Blog on Pages

I have an Astro blog deployed on Pages. There are already about 50 blog posts. All of the posts are MDX files located in the project, and I use Cloudflare Images for all images. My question is will this scale to hundreds of blog posts? Will the build time become a problem eventually? Will I eventually need to use a database such as Supabase or a headless CMS to store and deliver my content? Thanks for the help. I'm trying to plan ahead.

Switching from Netlify to Cloudflare Pages

Hi, I want to switch my website from Netlify to Cloudflare Pages and just want to confirm the steps that I should do. I have my project deployed from Github and I have a domain 1. Deploy the project on Cloudflare Pages 2. Add my domain on Cloudflare Pages 3. Go to my domain name registrar and change the DNS and Nameservers settings from Netlify to Cloudflare Pages....

Serving ./well-known/apple-app-site-association file from pages

I'm using next js's static file export feature and uploading my website to pages (so not using functions). I added apple's universal linking verification file today at next js's public/.well-known/apple-app-site-association path. And it does get picked up when I visit the site, however instead of showing contents it gets downloaded. Apple requires devs to serve this file as json. I added _headers file to public/_headers location with following contents ```...

Why requests from china will be route to US?

I tested my pages on china, I found all requests being routed to US instead Asia endpoints. I have to manually set my domain record to one of the ip of Asia, it's much faster than the default route. How can I make the requests from china being routed correctly?

Preview Urls with Github actions and direct upload.

We want to use pages to host multiple sites in our mono repo and it seems like we need to use direct upload. We are looking at this: https://github.com/cloudflare/pages-action but we are not sure if its possible to have preview urls for each branch as it doesn't seem like the url is able to be set.

do i need workers to connect nuxt in cloudflare pages to supabase?

do i need workers to connect nuxt to supabase? sorry just trying to learn things still a noob

No language detection on the custom domain

Hello, In the .dev sub-domain, language detection works and it automatically redirects to the correct path (fr/nl, etc.). However, if I'm on the custom domain, language detection doesn't work. I have also noticed one thing: ...