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

How can I connect to a postgres database?

I'm trying to connect to my postgres database through node-postgres but it fails because of required node dependencies. ```typescript import { PRIVATE_DATABASE_URL } from '$env/static/private'; import pg from "pg"; import { drizzle } from "drizzle-orm/node-postgres";...

Deprecation warnings when deploying to CFP from GitLab CI/CD

I typically deploy to Cloudflare Pages from GitHub Actions, but am currently doing so from GitLab CI/CD. The CFP-relevant parts of my .gitlab-ci.yml script (https://github.com/brycewray/hugo-site/blob/main/.gitlab-ci.yml) are:
- npm install -g wrangler --unsafe-perm=true
- wrangler pages deploy ./public --project-name=$PROJECT_NAME --branch "main"
- npm install -g wrangler --unsafe-perm=true
- wrangler pages deploy ./public --project-name=$PROJECT_NAME --branch "main"
...

Just made a branch, and can't connect to branch

I just made a branch for a website and it builds fine, but when I connect to it, my browser claims ERR_SSL_VERSION_OR_CIPHER_MISMATCH Unsupported protocol
The client and server don't support a common SSL protocol version or cipher suite.
...

Unable to use pages project

Since a GitHub Outage last month I've been unable to use my Pages product at all. I can't trigger commits, retrigger old deploys. Etc. I was told I can open a support ticket, which I did, but nearing a month or more later I still can't do it lol. At this point do I need to purchase Pro to get support that should otherwise be free? There's literally no way for me to fix this and I'm not getting any comms it's actually REALLY frustrating...
No description

fivem server vps protection

i tried contacting support but got no option this is the only way to ask my question. i have a fivem server and it is really easy to ddos attack my server and it happens often , do you have any services to protect me from ddos attack on my fivem server vps?...

CLOUDFARE NOT DEPLOYING NEXT JS WEBSITE

Have been trying to deploy nextjs website to cloudfare past some weeks now is not deploying SHowing Page not found 404 Error...

Pages Nuxt 2 Adding Slashes

I've read a lot of threads about this on Pages Community. However, the problems there were not resolved in any way. I added trailingslash in the nuxt.config file, but there was still no solution. When I refresh the page the server adds / again. I would be happy if you help. https://www.anniversarylist.com/the-ultimate-guide-to-pottery-anniversary-gifts/...

Delete preview on no production branches.

Good morning 🙂 , I have a question. I have enabled previews on branches that are not in production. Every day, several branches are generated and then merged into the production branch. Each branch, before being merged, has generated a preview. However, this preview remains active. My question is, is there a way to indicate that after a branch disappears, the corresponding preview for that branch is deleted?

SSL for SaaS + Pages

Is this supported? Getting timeout errors when configuring, and worker routes don't apply at the zone level to pages

Worker Analytics Beta not working

There is a. beta feature that allows you to write custom analytics from Cloudflare Workers/pages I have enabled the analytics feature on the Pages overview. I click on setup and follow the instructions. I have created an entry in my toml...

How fix Internal 500?

I ran into a problem that when I uploaded my site to CloudFlare Pages it started giving an internal 500, this is just an API wrapper, here is the code
No description

Svelte errors with adapter-cloudflare

Here's the error I get when running bun run build: ```
Using @sveltejs/adapter-cloudflare
✘ [ERROR] Could not resolve "../../../chunks/app2.js" ...

Bot protection for pages

Is WAF or bot protection available for cloudflare pages? i tried to look here - https://developers.cloudflare.com/bots/get-started/free/ does it mean it only supports the root domain and not a sub-domain?...

Pages & Google ads / tracking

Hi, I created my first static blog, but I would like to retarget my audience on google ads / shoot back to google ads (google tag manager) what my visitors did etcetera. Is this possible?...

Page can’t be found

After successfully deploying my project to cloudfare pages. it showing Page can't be found and have tried opening it in another browser, showing same result. The project is built with Nextjs + sanity Please how can i resolve this issue. It's been a while now 🙁...

Custom rules WAF

Hello , i'm actually in a intership and i have to provide some of the most important custom rules that we can use with WAF to secure an information system , does someone have a list of some rules or anything to help with ? Thanks !...

how to deploy DO with pages?

Hey this is really frustrating. I have a SvelteKit app and I made it so that ‘.svelte-kit/cloudflare/_worker.js’ exports my DO (class) ...

The exclude in _routes.json still trigger functions

Could someone assist me in achieving this? Thank you very much. Basiclly how to use _routes.json to avoid triggering functions I created a topic from cloudflare community https://community.cloudflare.com/t/the-exclude-in-routes-json-still-trigger-functions/564831...

CF Pages + Remix source maps

I'm struggling to get my sourcemaps produced by Remix mapping up to the code run in CF Pages. My understanding is wrangler will effectively re-bundle the Remix output functions/[[path]].js , wrapping it up as a _worker.js file. Naturally this means sourcemaps won't align....