I’m trying to deploy my app to Vercel. It’s a next.js application. I updated my package.json
to have:
"scripts": {
"build": "doppler run -- next build",
"dev": "doppler run -- next dev",
"doppler-install": "(curl -Ls https://cli.doppler.com/install.sh || wget -qO- https://cli.doppler.com/install.sh) | sh -s -- --no-install --no-package-manager",
"format": "pretty-quick --staged",
"lint": "next lint --fix",
"postinstall": "npm run doppler-install",
"prepare": "husky install",
"start": "next start"
},
When I deploy, however, I get an error:
added 871 packages in 1m
11:02:36.627
11:02:36.627 118 packages are looking for funding
11:02:36.627 run `npm fund` for details
11:02:36.656 Detected Next.js version: 12.1.4
11:02:36.663 Detected `package-lock.json` generated by npm 7...
11:02:36.664 Running "npm run build"
11:02:36.963
11:02:36.964 > wordblot-web@1.2.0 build
11:02:36.964 > doppler run -- next build
11:02:36.964
11:02:36.969 sh: doppler: command not found
11:02:36.981 Error: Command "npm run build" exited with 127
What am I doing wrong?