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

Serving SPA in subdirectory

I know you can serve a SPA (single-page application) in the root of the Pages deployment, if you don't have a 404.html in the root (https://developers.cloudflare.com/pages/configuration/serving-pages/#single-page-application-spa-rendering). However, I want to have normal page serving behaviour for the root and most of the site, but have SPA style page serving in a specific subdirectory (e.g. example.com/spa/) - so that any request URL that begins with /spa/* responds with /spa/index.html without redirecting. How could I achieve this?...

what to do next after enabling HSTS?

Heya! I’ve enabled HSTS (1 year, with all toggles enabled). Than I’ve tried to add my website to a preload list on hstsprelod org, but I do get ā€œerror: No HSTS headerā€. Where do I add this header? I have a static website built with Astro. ✨🫶...

DDoS Protection

Does the pages free plan come with ddos protection? My site got hit for an hour and I got charged for 600k requests that show in the panel

Cannot deploy on pages after installing remix-pwa

I followed this guide (https://developers.cloudflare.com/pages/framework-guides/deploy-a-remix-site/) to create a Remix app and it could deploy on cloudflare page successfully When I try to introduce Remix PWA https://remix-pwa.run/docs/installation The deployment has error ...

Cannot setup a custom domain

This must be a bug, I don't understand.
No description

What is the proper way to set up a route with next pages?

The docs don't paint a full picture and I'm confused. Allegedly, photo one is how the route is supposed to look, but when I use that route I get an internal server error when navigating to it and the following error: ✘ [ERROR] N [Error]: The middleware "/api/oauth/apple/login" accepts an async API directly with the form: ...
No description

Pages not letting a custom domain that is already active on the same account

- Pages: parsepronto.pages.dev - Account: 07c88aeec26183ad7858dab8e040fd1e...

Pages app meltdown - internal error at functionsWorker

Hi, my pages app is an Angular app with functions (Hono). It has been working fine for a long time, but since yesterday (7-mar-24) I see that it deploys fine and shortly after only shows the following message: Internal Server Error: internal error...

Just deployed a new version of my website.

The internal links work. But all the Custom Domains stoped working at the same time. DNS_PROBE_POSSIBLE Reverting to a old deploy did not fix....

can i host .net framework on cloudflare pages ?

can i host .net framework on cloudflare pages ?

third party github option for cloudflare pages

Is there a way I could have cf pages pull from forgejo?

View bandwidth usage by pages website?

Is there any way to see how much bandwidth a pages project has used?

Website domain stuck at verifying but subdomains working

I have a Pages project and I'm trying to add a domain to it. So the site has been added under Websites, but when I add this under Custom Domains in the Pages section it stays at verifying. It says 'Active' and 'data will be available here once available' I have another existing domain, which I can added as a subdomain for this pages and that verifies fine eg aaa.website.com...

Pages Inactive (Erro

Hi everyone, I have a little problem, when adding a custom domain to my page it shows Inactive (Error), but the domain works but is not up to date anyone has a solution? silabeo-web.pages.dev...

Preview branch, custom domain not supported

When adding a custom domain for a preview branch using external DNS, this page states that custom domains are not supported for external DNS. https://developers.cloudflare.com/pages/how-to/custom-branch-aliases/ Why does this limitation exist? Are there any ways to work around this functionality?...

How to specify "production" deploy via wrangler?

We're not using the git integration, but still pass "--branch" parameters when deploying so that we get aliasing. The problem seems to be that unless the branch name is main, all deploys are considered previews. Is there a way around this or some undocumented method to consider a specific preview as the production version of a page?...

Trouble getting Static Form Pages Plugin working with KV on Astro Site

WebDev noob here and struggling to integrate the Static Form Pages Plugin with KV on my Astro site. I followed the instructions here and updated my astro.config.mjs to use directory mode and src/env.d.ts to include define Cloudflare runtime and KV type. Also updated KV namespace bindings on Cloudflare Pages > Settings > Fuctions. Also added a wrangler.toml with the kv_namespaces. Could someone just provide some psuedo code on how you would update this respondeWith function that serializes the formData and saves it to a KV namespace? ```JavaScript import staticFormsPlugin from "@cloudflare/pages-plugin-static-forms";...

Different repositories at different paths

Is it possible to map two different paths to two different Pages projects? e.g. my.domain.com/ is processed by project domain-root and my.domain.com/cool-dude processed by project cool-dude? Or does that have to be done via subdomains?