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

wrangler published static files is not atomic?

By not atomic, I mean sometimes the index.html has already updated, but the lastest js file that the index.html referenced doesn't. In this case, cloudflare will fallback to return the index.html even we are requesting a .js file What worse, cloudflare will cache the fallback wrong content, because the path ends with .js (cacheable)....

cloudflare/pages-action: any way to know CF_PAGES_URL ahead of running the action?

Hi, I have a setup that's making use of the CF_PAGES_URL as described in docs In my build I'm getting the id out of it and I put it somewhere in assets. It's important to the setup because what comes out of the build is not served directly from the *.pages.dev, but instead the root of *.pages.dev is served as a path of some domain. ...

error 404

Hey, everybody! Created a static site, but there is a problem, did not understand how to solve it. No 404 error, instead it shows the main page, which creates a not limited number of doubles. How to make 404 error, not custom, but just standard? Thank you!...

New GitHub Org refuses to add itself to project creation selector with error code 8000000

I'm getting the error An unknown error occured. Contact your account team or Cloudflare support: https://cfl.re/3WgEyrH. (Code: 8000000) and from searching this discord it sounds like this error is a generic one. Account ID: b3b9704cdfcf5b49868feb9ea87930d9 For context: I want to deploy mygithubusername/staticproject on cloudflare pages on organization C. This is the first time I've ever tried to creating a project from organization C however I have already successfully used pages on github organization B and under my personal github username, so they appear in the selector. I click "Add Account" and because another user in the org has already used pages the app is already installed except that person scoped it to only one repo. I add my repo to the scope for github repos the cloudflare pages integration is allowed to access and click Save and it redirects me to the choose account screen (I have multiple accounts) with the error attached in the image and going to create a project from a git repo does not show org C. ...
No description

DNS Configuration for static page hosted on pages

I have a domain (vs-3ka.pages.dev), I created a CNAME entry for root (@) targeting vs-3ka.pages.dev but my domain https://vaniasausen.com.br/ is timing out. How should I configure it? A image of the configurations is attached. The dashboard says: DNS Setup:Full...
No description

Internal error when deploying SvelteKit app

Hello, I'm getting this error on every build I'm trying to deploy:
Failed: an internal error occurred. If this continues, contact support: https://cfl.re/3WgEyrH
Error: Failed to publish assets. For support, join our Discord (https://discord.gg/cloudflaredev) or create a ticket and reference the deployment ID: 11566e84-8b78-43bd-a310-ff2693ffbb8d
Failed: an internal error occurred. If this continues, contact support: https://cfl.re/3WgEyrH
Error: Failed to publish assets. For support, join our Discord (https://discord.gg/cloudflaredev) or create a ticket and reference the deployment ID: 11566e84-8b78-43bd-a310-ff2693ffbb8d
...

wrangler pages deploy --var

I'm missing one "minor" bit of functionality with the new wrangler pages deploy which would be great to have... I need to set a variable at deploy time value and need to use --var key:value Is this going to be coming to the deploy function?...

nextjs local preview succeeded, deployment succeeded, but no deployment was shown

next-on-pages environment related information System: Platform: darwin Arch: x64 Version: Darwin Kernel Version 23.1.0: Mon Oct 9 21:27:27 PDT 2023; root:xnu-10002.41.9~6/RELEASE_X86_64...
No description

Unable to deploy Next.js 14.2

Hello everyone, does anyone face this problem. Just setup new Next.js project and run on Cloudflare pages with next-on-pages. Get this error: ▲ Error: The file "/opt/buildhome/repo/.next/routes-manifest.json" couldn't be found. This is often caused by a misconfiguration in your project. ▲ Learn More: https://err.sh/vercel/vercel/now-next-routes-manifest...
No description

Unable to service bind to worker. Can't push new deployments

Hello, I am using my wrangler toml to set a [[services]] binding but whenever I run wrangler deploy, it creates a new deployment that is stuck on "waiting", and the dashboard never updates with the binding I set. I am using honox and my worker is deployed perfectly. Not sure what to do from here and if I can't get it to work I will have to abandon cloudflare all-together. 😦 I'm thinking that it might have something to do with Honox using the _worker.js export...
No description

Only encrypted environment variables show up at build time

I think the ability to encrypt variables is newish? I ran into issues where unencrypted variables weren't showing up at build time.

Pages deployment not running `npm run buld`

We had a dead production deployment go out this morning for a Pages project linked to a Github repo. There was a merge to the 'prod' branch which triggered a deployment but Cloudflare's build step did not run npm run build so the /functions folder was not generated and it just deployed nothing. To make things interesting, we had the exact same commit trigger a Preview deployment on our dev branch without any issues. The log from the broken production deployment (no functions deployed): `` 05:33:00.314 A wrangler.toml file was found but it does not appear to be valid. Did you mean to use wrangler.toml to configure Pages? If so, then make sure the file is valid and contains the pages_build_output_dir` property. Skipping file and continuing....

Remove deleted account pages

Hi Team, Is there a way for me to remove the pages linked to github on a deleted account? I went and delete the account without removing the pages. Now I can't link the github repository to the new CloudFlare account....

Pages deploy, doesn't respect build settings

I'm getting an error even though I set my build command to exit 0.

Deployment failed

I see that the deployment fails in my pages project, but there is no possibility to retrieve the deployment log. However I see in this documentation: https://developers.cloudflare.com/pages/configuration/debugging-pages/ that there is the possibility to see the log file for the deploy step. But there is nothing mentioned for direct upload. Is it possible to retrieve the log file using the API?...

Delete a Worker

This seems insane, I would like to delete two of my old Cloudflare Worker projects. When I try to delete a deployment before deleting the project, it says "This deployment cannot be deleted because it is currently your active Production deployment" So I tried to delete the project directly in the Manage tab, and it simply throws an error....

how return dns type A

Howdy! I would like to know if any of you know how to recover the dns type A or AAAA. I created a project with Pages, everything was going well until I decided to add a R2 service to the same domain, my Pages page was no longer seen. I deleted my domain from R2 but now I get an error 1006 and I get the message to configure my DNS type A, AAAA or CNAME, it should be noted that the CNAME is set. I have already added the IP that my domain provider (hostinger) gives me and it loads something but it is not my page, but their page. Even when the DNS (CNAME) make the proxy to cloudflared. Thank you in advance for your help....

No images and internal links

https://test0-5la.pages.dev/ fe15e1a9a809cda9a9fbd120dd546cc2 I restored a website from wayback machine and am trying to deploy it in cloudflare pages. No images appeared and the internal links don't work. Please help....
No description

Deploy preview with wrangler cli

Hello everyone, Is it possible to deploy a preview with the wrangler cli without connecting github to cloudflare ?...