Pol
Pol
CDCloudflare Developers
Created by Pol on 8/24/2024 in #pages-help
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": "[email protected]",
"private": true,
"scripts": {
...
},
"workspaces": [
"packages/*",
"tooling/*",
"apps/*"
]
}
{
"name": "X",
"devDependencies": {
"turbo": "2.0.9",
"typescript": "5.5.2"
},
"engines": {
"node": ">=20.12.0"
},
"packageManager": "[email protected]",
"private": true,
"scripts": {
...
},
"workspaces": [
"packages/*",
"tooling/*",
"apps/*"
]
}
17 replies