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

Very new to webdev. Need DNS help.

I had my CNAME wannawatchsomething.com pointed to wwti.pages.dev and that worked. I can't get a record to make www.wannawatchsomething.com to work. If you use www it doesn't work. Now even just wannawatchsomething.com isn't working. Honestly it doesn't seem to be propagating at all when I save it.

Pages fails to build with webpack and React

I am using a react with webpack, the build works fine locally, but the cloudflare page is unable to build it. It keeps throwing the following error
npm ERR! npm ci can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with npm install before continuing.
npm ERR! npm ci can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with npm install before continuing.
...

My project is not compiling anymore

I have an astrojs project that used to compile in CF Pages. Today I did some edits and the compiling threw an error. I tried recompiling exactly the same commit that I was able to successfully compile days ago, but now I'm getting the same error. Did I miss something with CF Pages? an update? I attach my log. EDIT: I was able to compile using Compile System V1 and NODE_VERSION = 18.17.1 . so far it's solved but it's not clear why?...

Getting `wrangler pages dev` to work with nextjs

I am currently using nextjs and wrangler inside VScode and Devcontainers. I followed the following guide in the documentation to create a new app. To test out the new app, running the following will set up the wrangler server, and I am able to navigate to /public/{files}.svg...

pages build Error: Failed to publish your Function. Got error: Uncaught ReferenceError: global

pages build log Error: Failed to publish your Function. Got error: Uncaught ReferenceError: global is not defined how to fix...

Cannot connect pages to my github account

I removed pages app from my github account because I had a problem with deployments, and now when I go to create a new page (in order to connect the app back to my account), I get a 404 on github.
No description

Unexpected reserved word at functionsWorker-0.23754139279282738.js:114:4

I have deployed Remix app on pages, but after a commit, an error appeared while deploying to Cloudflare's global network. The build was successfull, and everything was working locally. Can someone tell me how I can resolve this, as i am not able to find anything on the internet about this. i tried to download the build locally to check that wrokerFunction-* file using wrangler cli but, also struggling with that....
No description

Can't enable web analytics

Gives me this when trying to enable web analytics for my Cloudflare page (domain on cloudflare as well). In the previous step it told me that the deployment should be automatic. What should I do?
No description

Cloudflare categorized my website as phishing 😭

My website is just https://github.com/corydalis10/refined-uwdr forked from https://github.com/DhanushNehru/Ultimate-Web-Development-Resources. But when I checked today, my website is blocked because it's categorized as a phishing site. How do I fix this problem? Link: https://ruwdr.pages.dev...

Connection timed out for www

dns is not resolving to www here my config...
No description

_redirects redirects my proxy rule

Maybe someone can help me out here? I have an astro project (static export) with an _redirects file with this rule: /test-proxy /123 200 When I navigate to /test-proxy I just get a 308 Permanent Redirect to /123....

This context has no ExecutionContext

Hey, I'm currently trying to use next-on-pages with hono and I am getting the ✘ [ERROR] Error: This context has no ExecutionContext error and i'm not really sure how to fix it. I remember seeing the same issue being fixed somewhere but I don't remember how. Does anyone have experience regarding this?

Add Last-Modified header to Pages?

Hi, my cloudflare R2 bucket serves Last-Modified headers and and ETag. For sitemap.xml generation, Last-Modified is very useful to accurately generate get "whenever the ETag last changed". Is it possible to enable cloudflare to do so? The pages build already has the knowledge of "which assets changed" and which didn't, so it seems like it should be able to....

Next on Pages: Internal Error or "nodejs_compat" compatibility error

Hi everyone I have been running into problems with deploying my page onto cloudflare pages. I use the next-on-pages adapter and wrangler for deployment. When I deploy without adding the compatiblity flag "nodejs_compat" I run into an Error 1101 Worker threw exception. If i then change my wrangler.toml to accept the compatibility flag I run into an Internal Server Error and I am unsure how to see any logging regarding that. I added an image of my wrangler configuration file. The build logs show no error when I add the compatibility flag and when i remove it show the mentioned Error 1101 "nodejs_compat". ...
No description

Disable preview for pages

Hi, is it possible to disable the "preview" on pages ?

Environment variables for Hugo static site.

ba1e7341.vtr-4eh.pages.dev 96833aa0fdf8cb11ca7cf31ad5633d48 The environment variables are set in Pages setting for below: GOOGLE_ANALYTICS_API_KEY...

How to skip or customize pre-build cmd when using mkdoc

My doc and project is built on mkdoc. when I use git integration, it automatically pip install . whole project first and then mkdoc build. Since my c++ operator need a lot of stuff to compile, how should I skip it, or only use pip install .[doc]? Thanks!!

Caching Dynamic and Static content

How do I set up dynamic cache for pages without it turning static? I use a currency converter on my site and cloudflare serves already cached pages for visitors whose local currency is GBP for other visitors whose local currency is USD. #pages-help

Transfering domain from one.com to cloudflare

Im currently transfering a domain from one.com to cloudflare and is wondering if exactly all dns records should be transfered to keep their current services working.
Next