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

Deployment status "Failed" with no visible errors

Hi! I'm attempting to deploy a Nuxt application to Pages right now. After some wrestling with trying to get Prisma to work, I was able to get the application working locally with wranger pages dev, and running wrangler pages deploy successfully uploads my assets to Cloudflare. However, after checking the dashboard the deployment then displays a status of "Failed" and it is seemingly impossible to see the error logs for why this is actually the case. I'm hoping there is some way of checking this. My account ID is 6c9fe3e7d1343cad6f889dda69efe497, and the deployment ID is 16ffde94-cdb2-4819-86c8-88466bf9d138. Thanks!...

CORS

Any way to set allowed origins?

Sanitise HTML

I need to sanitise some html to protect against XSS. However cloudflare pages doesn't allow for dompurify, isomorphic-dompurify, or sanitize-html. Do I have other options?...

Workers + pages not working but no errors

I tried to deploy one of my web applications into cloudflare pages and after a lot of fighting to fix all the edge related issue I was able to have working build Now when I deploy the page just gives a 404 error (not the nextjs one, just an empty one) and when I try to see the workers logs I receive this error: We could not find that Workers Service on your account. (Code: 8000068)...

Difficulty Implementing Cloudflare Image Transformations on Pages

Hello! I'm currently deploying my Astro.js project to pages, connected to a Client's subdomain: site.client-domain.com. Everything is running smoothly, but I've encountered a hurdle when attempting to implement Cloudflare's Image Transformation via URL feature (https://developers.cloudflare.com/images/transform-images/transform-via-url/) for certain images on my page. Despite following the documentation, I'm unable to get it to work. My suspicion is that I need to register a Zone in order to activate Image Transformations. Could you confirm if this is the case?...

Adding CF analytics JS code to a static site already deployed?

Hi - i have a static WP site deployed to pages and I would like to add the CF website analytics via the JS snippet.. hoping to avoid rebuilding and redeploying the site. Is there a way in settings or anywhere to add the code and push to the live site without having to rebuild and redeploy the whole site? 🙂

Error: Command "npm run build" exited with 1

Hello! Im trying to implement my Next.js project on Cloudflare Pages. While trying to do so, I encounter an error related to webpack, PayPal SDK and vercel(?). I don´t really understand the log, so hopefully someone in here can help me out. ...

Vite build works locally, but fails on cloudflare

I recently added around 100 5Mb images to my project, which successfully builds locally, but when I try to build & deploy on pages it fails. What's interesting is that the failure is not the same each time. Sometimes it fails to resolve different image paths. How can I fix this?...
No description

running `ng serve` together with `wrangler pages dev`

I'm running a POC with an Angular frontend (non-SSR) and an API inside the functions folders. The setup is running nicely on CF when deployed. But I'm now seeking for a good development workflow... With wrangler pages dev I can test my api on port 8787 and it picks up changes to my API in development without restarting....

SvelteKit service bindings in local development

I am trying use a service binding in a serverside function SvelteKit, however it can't be reached during local development, even when running both with wrangler dev. After deployment, it works. [wrangler] Couldn't find 'wrangler dev' session for service "backend-worker" to proxy to https://github.com/magicalpuffin/public-debug/tree/main/2024/cloudflare-pages-service-binding...

Failed: an internal error occurred.

Hello everyone, I am trying to deploy nuxt, but the deployment failed when my files exceeded 1000, 18:56:21.496 ✨ Compiled Worker successfully 18:56:22.581 Found _routes.json in output directory. Uploading. 18:56:22.596 Validating asset output directory...

No idea why e2e response time is too high than in my log

Hi My request took too long and I want to debug, but I have no idea with this, I've calculated by my self it is only 100ms but in chrome devtool it shows 1.5s, any idea why? Tried > 3 times but the same result Account id: 5c6fbc8f1990d244d873173b28cc8381...
No description

Failed: an internal error occurred.

Trying to get my next app running on pages and everything seem to build ok till i get this error: 'Failed: an internal error occurred. If this continues, contact support: https://cfl.re/3WgEyrH' It doesnt give any other message so ive no idea what could be the issue....

Migrated to `wrangler.toml` - getting "Deployment failed" in dashboard

After reading https://blog.cloudflare.com/pages-workers-integrations-monorepos-nextjs-wrangler, I decided to switch my pages deployment to use wrangler.toml. This works great locally (no more passing a bunch of parameters), but when I deploy I get a weird situation. ``` npx -y wrangler@latest pages deploy site --branch=production --commit-dirty=true 🌍 Uploading... (5/5)...
No description

Stale web pages showing up after changing pages architecture

Hi, I have a static website hosted on pages. it used to be written in raw HTML, but it's been recently switched to react using vite to bootstrap. the front page was succesfully updated. however some pages are still rendering the stale page. I have already invalidated cache and switched the server to dev mode. but it seems like it's still stuck. This is using a custom domain, however the default subdomain is rendering everything correctly.

Service Binding not appearing in worker dashboard

As per the title, I am having some trouble setting up a service worker from my pages app. In the Pages app cloudflare dashboard I can see the binding has been setup, however when I go to triggers in the worker dashboard, the bindings are empty:
No other Services bind to markdown-worker. To invoke this from another Service, add a Service Binding from that Service's Settings > Variables page
...

Set pages secrets through cli

I’m trying to share secrets between worker and pages. For workers I can put new secrets through cli. What’s the approach for pages project?

Successful deploy via Wrangler but error in console

I'm trying to make changes to an existing site https://digitalalltheway.com. The deploy works fine via wrangler. ─(12:22:23)──> npx wrangler pages deploy . 130 ↵ ──(Thu,Apr04)─┘...

ERROR with Qwik: inconsistencies between "wrangler pages dev" and production URL

I have my Qwik application which when running these commands: qwik build followed by wrangler pages dev ./dist --compatibility-flags nodejs_compat rpc --compatibility-date=2024-03-20 it works perfectly locally the problem is when I deploy it that I get a 500 error directly. I don't even know how to debug this because locally it works (using wrangler) so I'm confused...
No description

Workers paid plan permit pages deploys up to 10MB in size?

Does the workers paid plan ($5/mo) permit pages deploys up to 10mb in size? Or do you need to get the cloudflare pro plan ($20/mo)? The pages limits page (https://developers.cloudflare.com/pages/platform/limits/) does not mention a size for the pages function. The workes limits page (https://developers.cloudflare.com/workers/platform/limits/) mentions 10mb for workers paid plan....