I'm using Bun, it's specified on package.json, but pages tries to download with npm

Hey, I have a NextJS website that I'm trying to deploy to cf pages. I could to it through wrangler, but I want to have builds on pushes, so I want to build through cf. I'm using Bun, and it's specified in the package.json, but for some reason, cf decides to run npm install, and fails.

package.json
{
  "name": "X",
  "devDependencies": {
    "turbo": "2.0.9",
    "typescript": "5.5.2"
  },
  "engines": {
    "node": ">=20.12.0"
  },
  "packageManager": "bun@1.1.20",
  "private": true,
  "scripts": {
    ...
  },
  "workspaces": [
    "packages/*",
    "tooling/*",
    "apps/*"
  ]
}
Was this page helpful?