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

Pages usage multiple accounts

I'm currently evaluating whether and how to use Cloudflare Pages to host our customers websites. To that point I'm not sure how Cloudflare handles its limits. For example, am I allowed to create a separate account per customer/domain? That would effectively "circumvent" limits imposed per account and might break the Cloudflare Self-Serve Subscription Agreement, as I understand it. But I could not find a definitive answer....

Sentry fronted problem

I have remix project on cloudflare pages linked with worker I initialized sentry in pages via :https://docs.sentry.io/platforms/javascript/guides/cloudflare/ But its seems working only for backend not for front. What could be the issue?...

Next.js + Cloudflare pages functions

I tried it myself but was a nightmare to work with, is there any guide or github repo i can follow to make it work?

Missing Content-Security-Policy & Permissions-Policy Headers on Cloudflare Pages Deployment

Hi everyone, I'm experiencing an issue where my Content-Security-Policy (CSP) and Permissions-Policy headers are not being applied correctly when deploying my site on Cloudflare Pages. (https://securityheaders.com/?q=dashio.net&followRedirects=on) Context:...

Running into CPU time limits

Any free/cheap way around this? I have an API route that uses an library that needs to do some crypto-related stuff (generate random RSA keys, uses sha256 etc.), and I believe this is causing the page to (sometimes) go over the limit. Any advice?

How to genenrate a toml-suffix wrangler file when use npm create cloudflare

When I used npm create cloudflare, the wrangler in the project I created was always JSON suffix, and I needed to configure something to generate a toml-suffix file when using the default script

You are using Node.js 18.17.1. For Next.js, Node.js version "^18.18.0 || ^19.8.0 || >= 20.0.0"

can somebody help me with that... I am using the latest nodejs version
v23.7.0
v23.7.0
I've tried everything I could possibly find lol I am trying to deploy a nextjs project to cloudflare pages...

Reccomended Way To Run Npx Wrangler Pages Dev with preview/production env vars?

My Wrangler toml is configured correctly with preview and production enviromnent variables as described by the documentation here https://developers.cloudflare.com/pages/functions/wrangler-configuration/. However, I am unsure of how to run the development server with different environment variables other than [vars] -- which are the only ones injected by saying 'npx wrangler pages dev out/' Asked perplexity and got the use of a non-existent flag '--env'....

I need to change my name servers so that elk-pickleball.com can connect correctly to the Wix site.

I need to change my name servers so that elk-pickleball.com can connect correctly to the Wix site. Please update the name server records for this domain to: ns2.wixdns.net ns3.wixdns.net...

VITE_.. env now not being picked up after using wrangler.toml

I switched to using a wrangler.toml in the root of my cloudflare pages repo, and now all of a sudden I'm getting this message on build:
20:01:56.667 (!) %VITE_GA4_KEY% is not defined in env variables found in /index.html. Is the variable mistyped?
20:01:56.667 (!) %VITE_GA4_KEY% is not defined in env variables found in /index.html. Is the variable mistyped?
20:01:56.667 (!) %VITE_GA4_KEY% is not defined in env variables found in /index.html. Is the variable mistyped?
20:01:56.667 (!) %VITE_GA4_KEY% is not defined in env variables found in /index.html. Is the variable mistyped?
...

Can Leaked Credentials Detection work on pages other than login.php?

My website has enabled the leaked credentials detection (under the Pro plan) but it only works on the login.php. Can it work on other pages like reset_password.php to check whether the new password is also leaked?

Is it possible to have a comments section on pages?

I'm thinking of adding comments to my blog and from a quick look online, it seems like I would need a server/php to be able to have comments to work properly. I might be wrong about pages not supporting server stuff but I would just like someone to let me know for sure....

Can't set Env Variables for Zola Build on Cloudflare Pages

On this page: https://developers.cloudflare.com/pages/framework-guides/deploy-a-zola-site/#deploying-with-cloudflare-pages it says: "Below the configuration, make sure to set the Environment Variables (advanced) for specifying the ZOLA_VERSION." But I can't find a way to set the Env vars. There is no option there.... And the build keeps failing. FYI: My webpage was initially a plain HTML/CSS website and I moved it over to Zola. ...

404 On page

I am getting a 404 page when trying to access my page. The output file is named index.js so I am not sure why it is not working. I have a custom domain but even the .dev domain does not seem to work.

Webflow to Cloudflare Pages

Does anyone have any experience with designing on Webflow and deploying on Cloudflare Pages? I have a paid workspace on Webflow which enables me to export site code, but at the moment I only know how to do this manually. I'd be interested in figuring out how to export code into Cloudflare Pages automatically when updates are published on the Webflow staging site. Any direction would be very helpful!...

Cloudflare pages hosting issue

Cloudflare pages stopped working due to due to account being downgraded to free tier by mistake, after resolving the issue the account is again upgraded to the right paid tier but the hosting is still not working. Trying to access the production or preview channels on the projects in the said account, we are getting a 404 and only the pre-rendered files seem to work, anything that requires function invocation is failing. any suggestions on what could be the issue?...

cloudflare pages and subfolder

Hello, I have a project running on cloudflare pages and I need a subfolder to resolve to another service. For example: example.com works on cloudflares pages, but example.com/news resolves to another server. Is this possible? Or will I have to take everything to an nginx? Thank you so much...

Doesn't import.meta.url work in cloudflare pages? i am getting this error

I am having a nuxt 3.15 app. I can build and preview it in my local pc. I am trying to deploy it to cloudflare pages. I am getting this error when trying to preview it on localhost using wrangler:
Uncaught TypeError: Invalid URL string.
Uncaught TypeError: Invalid URL string.
...