Muhammad Asim
CDCloudflare Developers
•Created by Muhammad Asim on 3/27/2025 in #general-help
nextjs app router peer depency issues
I have deployed my project on cloudflare pages, i have got this issues, i need your support to resolve this issues, like in here when i apply the npm run preview command then the next on pages will used the vercel command, is there is any way that i will make it to change the vercel build command
like by default the cloudflare used the vercel
The script excute like that
The script exec chain: npx next-on-pages -> vercel build -> npm run build -> next build.
i want to make to change the vercel build commands
▲ npm error Fix the upstream dependency conflict, or retry
▲ npm error this command with --force or --legacy-peer-deps
▲ npm error to accept an incorrect (and potentially broken) dependency resolution.
▲ npm error
▲ npm error
▲ npm error For a full report see:
▲ npm error /home/user/.npm/_logs/2025-03-27T06_14_56_363Z-eresolve-report.txt
▲ npm error A complete log of this run can be found in: /home/user/.npm/_logs/2025-03-27T06_14_56_363Z-debug-0.log
▲ Error: Command "npm install" exited with 1
⚡️ The Vercel build (npx vercel build) command failed. For more details see the Vercel logs above.
▲ npm error A complete log of this run can be found in: /home/user/.npm/_logs/2025-03-27T06_14_56_363Z-debug-0.log
▲ Error: Command "npm install" exited with 1
⚡️ The Vercel build (npx vercel build) command failed. For more details see the Vercel logs above.
⚡️ The Vercel build (npx vercel build) command failed. For more details see the Vercel logs above.
⚡️ If you need help solving the issue, refer to the Vercel or Next.js documentation or their repositories.
1 replies
CDCloudflare Developers
•Created by Muhammad Asim on 3/27/2025 in #pages-help
Peer Depency issues using nextjs app router

1 replies
CDCloudflare Developers
•Created by Muhammad Asim on 3/27/2025 in #workers-help
Build issues when i deploy nextjs project

1 replies