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

Failed deployment, no logs available.

I'm able to run my site locally with wrangler, however deployment fails (showing success in wrangler) (lack of reporting is related to https://github.com/cloudflare/workers-sdk/issues/3966) Is there someone at cloudflare who can help and look up the deployment logs for me? šŸ™ 🄺 ...

How do I bypass Cloudflare Zero Trust auth page when testing web UI with Playwright?

I am building a web app and am currently in the process of adding automated tests, including Playwright. I have my website set up to have the Zero Trust auth page set up with Google auth. When I add my test cases, I can see that all the tests try to test against the access page in the screenshot. I have the following code in my playwright.config.ts filethat passes the ID and secret:...
No description

Only developers....

Hi everyone, I'm locked out by MFA. Typical scenario, old phone lost, password ok... but I can't reset it

Running into a failed deployment. Can't get deployment logs (wrangler reports succes)

I'm able to run my site locally with wrangler, however deployment fails (showing success in wrangler) (lack of reporting is related to https://github.com/cloudflare/workers-sdk/issues/3966) Is there someone at cloudflare who can help and look up the deployment logs for me? šŸ™ 🄺 ...

Installing Rust toolchain during pages build

Hi I am using a Rust module compiled to WASM in my Pages project. Since Rust isn't supported natively I have the following script to install it duringpostinstall While it works most of the time, invoking the cargo-component build step gives me an error sh: 1: cargo: not found. I guess this is because the current shell session is not configured correctly. I tried doing it manually with by invoking source $HOME/.cargo/env but the build environment does not seem to have access to the source command... /bin/sh: 1: source: not found....

Express.JS Deploy on CF Pages

Hi, Is it possible to deploy a Express.JS REST-API on CloudFlare Pages? I would like to handle my Backend Requests there instead of Next JS for example.

ERROR: Could not resolve "crypto"

I'm using HonoJS with the library Hono Sessions. When I use wrangler to preview wrangler pages dev dist I get an error complaining about not being able to resolve crypto: ``` ✘ [ERROR] 1 error(s) and 0 warning(s) when compiling Worker. ...

Pages - Worker binding failing

Any guidance on how to use a make a fetch request to a Cloudflare Worker which is service bound to a Cloudflare Pages next-on-page project? The relevant service binding is always empty ({ WORKER: constructor { } } )for me when I try to read it from the worker. Very grateful for guidance as this is holding up prod ```...

No logs - Tell me why deployment fails

Can someone at Cloudflare tell me why deployments for my project fail silently? It's deployed manually. So the upload is fine etc, we just get no logs or error message on deployment 😦 Only ID for the deployment that I get: https://d6f79798.dashboard-6lb.pages.dev...

Content is only Visible on Preview Branch/URL

Hi, I deployed codes from Github, unfortunately the content is only visible on preview/development branch, not on main branch. I've tried several times but no luck. Any info about this will be really helpful. Thanks....
No description

support for nx monorepo and next-on-pages

Hello there, I am trying to solve the problem, where we are using nx monorepo v16, and having 1 root package.json file, previously we were using vercel for deployment but now like to get it deployed on cloudflare pages, I found the solution of @cloudflare/next-on-pages plugin but not getting the right idea to configure my all 3 existing nextjs app in a way that it can be deployed on cloidflare pages. Any help, sugguestion will be appreciated...

Next js project builds for hours but does not complete

Hi, I am having this issue from yesterday, my next js project is building for hours but does not complete building when I push. Here's a screenshot which show it was going for 18+ hours, then I canceled it....
No description

Is it possible to access requests headers in Pages' functions?

I was trying to access context.request.headers but it's always empty... I'm performing API requests via postman sending custom headers but so far nothing shows up in the response. Here's my code: ``` export const onRequestPost: PagesFunction<Env> = async (context) => {...

Loading module from "*.js" was blocked because of disallowed MIME type ("")

For the past couple of days I've been trying to create a new deployment, but loading the javascript module is always being blocked because of "disallowed MIME type". This doesn't happen when I run it on localhost or preview the site with vite preview. My build configuration: ```typescript import { defineConfig } from 'vite'...
No description

Best practice for developing and testing with Pages, Workers and Durable Objects.

Hello, Sorry in advance if this is to broad of a question. I’m planning to move/redevelop one of my sites using astro and deploy on cloudflare. I also want to use websockets using durable objects. ...

node.js package on Pages

I'm trying to make a website using a node.js package which only runs in a .js file. When I try to run the build command node . and it will just stay there until the console closes ( Never). How would I fix this?

Error while building Pages Functions from monorepo (nx): Could not resolve

I have a monorepo that contains a Pages project and a library that the Pages _worker.js function depends on. During the CF build I get the following error (which works fine locally). ```bash 22:20:45.746 > build:functions...

Can't list repos of my org

Hi all, it seems smth has changed and I don't get a list of repos for my org When I click on the link in the message "If your repository is not shown, configure repository access for the Cloudflare Pages app on GitHub." I get 404 from GH...
No description