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 to deploy an existing Nextjs pages router app to Cloudflare? Docs is for new apps

How do I deploy an existing NextJs app that uses the pages router to Cloudflare pages? The documentation shows how to create a new app. (https://developers.cloudflare.com/pages/framework-guides/nextjs/deploy-a-nextjs-site/) I'm very grateful in advance for the help!

CNAME

how can I fix it please?

My app is 10 times slower in production

Hey folks, my local env takes 200ms to load the server-rendered HTML, production takes 2.2s. The latency increase is insane. How do you debug this? I'm not running any database queries. It's a Remix app that server renders a landing page. Here's the app https://yup-258-marketing-pages-take-i932.yupty-front.pages.dev/...

Error: Failed to publish your Function. Got error: Unknown internal error occurred.

Hi, My Astro SSR project always return error "Error: Failed to publish your Function. Got error: Unknown internal error occurred."

Deployment Failed Without Reason Given Despite Successful Build

I can upload successfully with wrangler pages deploy but in the dashboard the deployments fail without providing a reason. Account ID: 9f506cd5adac9c1b998cfb92cc278a95 Deployment ID: 46db05a8-6755-4c39-8e4a-d74676b8a193 ...

Best place for viewing production logs? Moving from Vercel

I'm in the process of moving from Vercel to Pages, and I'm looking for the best way to replicate Vercel's Logs page (picture attached). I see that in CF in Deployment details > Functions, I can stream from one of the deployments and click in to see logs (and I can use Wrangler CLI to filter more closely). Am I correct that this is the closest to the Vercel Logs page? Also, I notice that when I send back a 400 via nextjs, the CF logs (both in the dash and via wrangler) say OK. Browser correctly shows the 400 as an error. ``` {...

I'm having an issue with my DNS configuration

Hi everyone, I'm having an issue with my DNS configuration and could use some help. I want my application to be accessible at https://dash.topeka.fun, but it's running on the IP 102.215.220.41 with port 10149. Right now, if I configure an A record on Cloudflare for dash.topeka.fun pointing to 102.215.220.41, it works, but since standard DNS records don’t support specifying ports, my application isn’t accessible on the correct port by default....

Pages/Workers not picking up NextJS .env vars

I'm trying to deploy a NextJS-based Page (+ route handlers which iiuc are deployed as Workers), and it doesn't seem to be picking up my .env vars. It only works if I input them manually into the dashboard. Weird because the build logs always says it pulls in .env. Do I need to use .toml or something?

New to pages. Trying to understand how to add rating limiting / IP banning etc

Hello! I'm new to hosting on CF. I'm used to using the security/perf/ddos features for other websites, but I'm having a bit of trouble understand how Pages works with the network features. After I've deployed a site via Pages, and if I assign a CF domain to the Page, do I then configure the domain-specific network features separately from the Pages/Worker stuff? Mostly trying to understand the layout of the dashboard. There's a ton of stuff. Thank you!...

Nuxt 3.12.3 "Error: Failed to publish your Function. Got error: Unknown internal error occurred"

I am upgrading my Nuxt app from 2.17 to 3.12.3 and I getting this error when I tried to deploy my app Attached the logs. Is there anything I can do to fix it?...

Add domain name to VPS Server

i bought a domain name and a vps server hosted on ubuntu 22.04. But there's a problem when I try to point the domain name to the vps server, it displays an error 521. Namely, my server has no firewall activated and no ip blocked. It authorizes connections on port 80. I don't understand where this error could be coming from, knowing that I've correctly pointed the domain name to the server... ...

Unable to delete Pages project from the control panel Error Code: 8000000

I am unable to delete a Cloudflare Project from the UI. Is there an existing issue for this?

@cloudflare/puppeteer access?

I'm in a paid subscription, but I can't use @Cloudflare/puppeteer TypeError: Cannot read properties of undefined (reading 'fetch') I'm trying to take screenshot of a specific website....

"Failed to publish your Function. Got error: Unknown internal error occurred." Error or Nuxt 3.12.3

Hey people, We've been using Cloudflare to host our application for a while now and when we try to update from Nuxt 3.11.2 to Nuxt 3.12.x we get this error while trying to deploy: ``` "Failed to publish your Function. Got error: Unknown internal error occurred."...

Domain site doesn't work but ipv4 does?

So I'm working on a Discord bot website but it doesn't display my web page? It works fine on the ipv4 site. Im not sure whats wrong I'm sorry if this is a dumb question I'm new to stuff like this. Thank you ā¤ļø

Getting Error while deploying.... Need Help

amz3dparser.pages.dev Acc. ID 91a29a823a66f970de5c692e5b1e0118 I am working on node.js server. Server is started working successfully. but while building application getting an error: "Failed: build exceeded the time limit and was terminated." ....

Bun and Environment Variables - how?

I'm trying to read environment variables and everything I try seems to fail. Here are some of the attempts and issues. - Using import { env } from "bun"; results in ERROR: Could not resolve "bun"....

Real client IP

Hi everyone, I'm running an application hosted on Kubernetes, and I'm facing an issue where I need to obtain the real IP addresses of clients accessing my app. Currently, Cloudflare is sitting in front of my application, and it seems like I only receive the IP addresses of Cloudflare nodes. Is there a way to get the real IP addresses of clients through Cloudflare? Any specific headers or configurations I should be aware of?...

Add domain to pages project with A record

I run a SaaS on pages. Customers can add their own domain by pointing two CNAME records (www and root-level) to customer.mydomain.com. The deployed page handles redirects from non-www to www or www to non-www, depending on the customers choice. The problem is that some customers use a domain registrar/DNS provider that does not allow adding a CNAME record at root level. In this case I tell them to create a CNAME record only under www and create a permanent redirect to www at the root level. Which is a problem if their previous setup redirects www to the root level. In this case I recommend them to switch their DNS provider....

Failed to publish assets, internal error

devmkay.pages.dev account ID: c66db755b178e1ad8bd50e6cbf9c8208 deployment ID: 30e3ac5b-3306-422e-989b-39025aa50234 ...