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

Site is randomly not responding any text

Hello, I have deployed my nuxt3 app as static site on pages and when I access it sometimes I get blank page and sometimes it works - even if I don't change anything. when I run this command multiple times I randomly get response sometimes sometimes nothing is responded even though I don't deploy any changes ```...

Could not upload the asset manifest.

Page: https://muaway--client--update-desktop-cloudflare-pages.pages.dev/ Deployment Id: 40915bd8-59f5-4a30-a748-7acad020853f Account Id: 8ba37cdcdc5cb1200d007c560c9f1242 09:04:05.766 ✨ Upload complete!...

Cannot perform I/O on behalf of a different request

I'm trying to use the postgres library with neon.tech but I get this error:
Error: Cannot perform I/O on behalf of a different request. I/O objects (such as streams, request/response bodies, and others) created in the context of one request handler cannot be accessed from a different request's handler. This is a limitation of Cloudflare Workers which allows us to improve overall performance. (I/O type: Writable)
Error: Cannot perform I/O on behalf of a different request. I/O objects (such as streams, request/response bodies, and others) created in the context of one request handler cannot be accessed from a different request's handler. This is a limitation of Cloudflare Workers which allows us to improve overall performance. (I/O type: Writable)
...

Uncaught Error: No such module "node:events".

I'm trying to deploy my SvelteKit app on Cloudflare using bun I'm using the crypto module (importing it with node:crypto) and this is my wrangler.json: ```...

Can Pages do rewrites (not redirects)

Hi. I'm trying Cloudflare Pages as an alternative to Firebase hosting for my existing site. I'm having a pretty positive experience so far, especially with the build-from-git integration. But I've come to an issue which seems to block the migration. Amongst some of the routes my static site uses I have ones that have a pattern such as /ws/<wsid>/viewtypexxx, which I would like to be rewritten as /ws/viewtypexxx.html. By "rewritten" I mean the httpd server serves the content of the latter when the client requests the former. The JS in my page parses the wsid value out of the location for itself so the right content is loaded dynamically after initial page load. I'm not finding any solution in docs, but it doesn't say clearly that it isn't supported either, and rewrite rules seem common enough these days in other hosting I've been uisng over the last couple of years. Are they supported?...

How to route www. subdomain to apex domain in pages?

I have a Cloudflare domain. I linked it to my pages project. If I visit mydomain.com, it works fine. But ... I'm struggling to figure out how to route www.mydomain.com to mydomain.com. Here's my current DNS setup. When I go to www.mydomain.com, it gives a DNS error. What should I do?

Route website from a private repo to public repo.

I don't know if i will be able to explain myself clearly, but i'll try. I have a website showcasing the tool (example.com), and the actual tool reachable at (example.com/tool). As of now both are deployed from the same public repo. I want to make the landing page website closed-source, and keep the tool open-source, while still mantaining the same benefits of github integration w/pages. I have a bought domain for the website. Both the tool and the landing page are using Astro as a framework if that's relevant....

Eleventy project failing to find build or dependency cache

I have build caching turned on for an Eleventy site. When I run the deployment, the end of the log reports: 10:00:49.722 Uploading to dependency cache 10:00:49.727 Uploading to build output cache 10:00:50.019 Success: Build output uploaded to build cache....

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.

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....

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?

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...

_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....