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 pages deploy works but it shows "this deployment failed"

Hi, I have a hono application that builds and runs locally (even using wrangler pages dev), but when I do a deployment to production or even for preview, my deployment succeeds but it shows "this deployment failed" in the dashboard. Could you see my deployment logs? Deployment ID: f160ba99-a08b-4388-9a9b-dd92b5f83340...

Shopify Extensibility App on Cloudflare

Has anybody hosted a Shopify extensibility app on Cloudflare yet? I have gotten hosting to work on Fly.io before, but I can't seem to get if for Cloudflare. I've tried doing both "exit 0" and "npm run build" for the build command, but still no luck. Anyone have an idea of what I may be missing?
No description

html image won't load despite simple html. Animated .webp nor .gif nor static .png works.

<body> <img src="test.png" alt="Assembly Animation" style="width:30%;"> </body> 2024-05-09T20:58:39.635016Z Cloning repository......

wrangler

Hey, I'm new at this, sorry but while using this command : $ wrangler generate projectname >> I get a whole automated process, forcing to use typescript. and I don't want, I want to use javascript....
No description

Every build fail for me

Can someone help me with why it fail to build? For this commit I added some components and updated tailwind. Right after that I can’t seem to build, tried to revert these things but it’s not helping. Here is the log
No description

pages functions service binding to worker

Documentation says: project > settings > functions > service bindings but when i get there, the button says get started then links me back to my homepage 😦...
No description

Website does not show new deployment even after clearing all caches

I have pages set up to pull from production like any normal CI/CD pipeline. Pushing triggers a new deployment as planned and the status says all good but the changes are not live even after days of waiting for them. When I build locally the changes are present and even when I server locally and on multiple different devices. I investigated and found that it some how may be pulling from a old commit and from a branch that it should not be pulling from at all which is the main branch that is used just as a stable point of the application. The commit message is completely different from the one that should be on the production branch. Development Link: https://df48a505.knuhkle-vue-web.pages.dev/...

Pages build stalls and times out for Sphinx and `make html`

I am trying to build Sphinx docs via make html as my build command, which also installs dependencies for the documentation of my project. According to the docs, this is possible (https://developers.cloudflare.com/pages/framework-guides/deploy-a-sphinx-site/#deploy-with-cloudflare-pages). I don't set the PYTHON_VERSION env var because the default Python 3.11.x is sufficient. The process works up to a point. For some reason it hangs on pip install ., but I have no idea where that command comes from. The last line I see in the log is this: Building wheel for plone-sphinx-theme (pyproject.toml): started...

Can't login anymore

Hi Cloudflare, I can't login to my account anymore. Before that happen there is an email notifaction that my Cloudflare account has been accessed from a new IP Address. And I can't reset the password too....

Wrangler deploy shows success but actually fails

I have a Hono based app that builds successfully and I can preview it locally. When I deploy, wrangler shows success. When I visit my dashboard it says it failed but does not tell me why....
No description

CSS and JavaScript not updating

All the files and folders have updated, bur the CSS and JavaScript are still the same from an older version. Works fine on the pages.dev site, but not on my custom domain.

Cookies not being updated on CF Pages when expires date is in the past

I noticed that something is wrong with my cookies. I can set or replace cookies without trouble both locally and on the production custom domain. but when I try to delete those cookies by setting the expires attribute to Thu, 01 Jan 1970 00:00:00 GMT and also set the domain and path exactly to what it says in devtools, the cookies just don’t get removed, the expiration date is not updated at all. while locally during dev testing it does remove them! how do I fix this?

How to cache Deno dependencies during a build?

I noticed that in a project of mine where a build takes about 1m 40s installing Deno and related dependencies takes roughly a minute of the build time. I also noticed that Cloudflare Pages supports caching these days and Deno has support for caching as well. Has anyone figured out how to connect these two concepts? Can I tell Cloudflare Pages to use a custom cach...

How can I override the npm version?

Hi, I know you can use the NODE_VERSION to change the node version but my build won't pass because it needs a certain npm version. From the website, there's no environment variable listed for npm:https://developers.cloudflare.com/pages/configuration/language-support-and-tools/ The website also mentioned "We are aware of some outstanding issues with the v2 build system that we intend on fixing: Detecting Node.js and package managers from package.json -> "engines". ". I've tried specifying the npm version through package.json->"engines" but this is also not working....

next-on-pages with pg fails with Module not found: Can't. resolve 'fs'

Hi. I'm struggling to make it work with next-on-pages, pg, Auth.js with next dev with export const runtime = "edge"; enabled. It gives me following error, but I thought it should work and does not use any edge-uncompatible modules such as fs because of pg-cloudflare. I did set Auth.js strategy to use jwt and separate middleware from auth.ts following https://authjs.dev/getting-started/migrating-to-v5#edge-compatibility ....

Connected my cloudflare page to my domain, but It's not working

Hey there, I have a cloudflare page hosting my sveltekit website, it's a simple static website doing nothing, anyways after I linked it with my domain, and the DNS records was updated sucessfully, but I'm getting a connection timeout visiting www.mydomain.com and a refused to connect error visiting the root @, even when the page subdomain is working fine though My pages.dev subdomain: www-dealx-landing.pages.dev My account id: 8845adbc1572371ee22677b50050d90c...
No description

Deployments are failing for CF Pages with Functions

I've been able to deploy my site several times today without any trouble, but now suddenly every deployment fails. I use Wrangler (which doesn't give any errors) to upload my static site along with a few Functions. It did deploy earlier today, but now every deployment fails. I also can't find any logs anywhere to see what is even causing this... I did find out the ONLY possible way to make the deployments succeed is by adding compatibility_flags = to wrangler.toml file. Deployments fail without that line, and deployments also fail when compatibility_flags has an actual value. I do get errors now saying it doesn't have a value, but the deployments do work this way... - evonycompanion-2mg.pages.dev...

Every build is failing with errors

Every build is failing with either of the following errors https://dash.cloudflare.com/dd58a62db8fbfab42f04dbf825c69f1a/pages/view/platform/27bee979-1fcd-4272-9476-1e31ce06dee8 16:11:22.532 Using v2 root directory strategy...

I'm incorrectly *not* getting a 404 on some fetch requests. How do I get 404s?

I have code that fetches files with extensions -- and that works great, but when a file is missing, I get the index.html page. I believe this to be wrong behavior. Is there a way to fix, or is this a bug with cloudflare? 😅

Having repeated errors on the uploading part of the deployment

Any ides why we seem to be getting errors regularly during the uploading part of deployment? A couple of deployment IDs are 2f8fa42a-96da-4bc0-b6f9-322cf91fa970, 2454dd77-2c54-4842-802c-8a304a98113e...