Deploy did not succeed with HTTP Error 400 - Next JS

Sitename: savewyzeapp
10:29:24 AM: ​
10:29:24 AM: Error deploying
10:29:24 AM: ────────────────────────────────────────────────────────────────
10:29:24 AM: ​
10:29:24 AM: Error message
10:29:24 AM: Deploy did not succeed with HTTP Error 400: [PUT /deploys/{deploy_id}/functions/{name}][400] uploadDeployFunction default &{Code:400 Message:Failed to create function on AWS Lambda: invalid parameter for lambda creation: Invalid AWS Lambda parameters used in this request.}
10:29:24 AM: ​
10:29:24 AM: Error location
10:29:24 AM: At deploy the stage with HTTP status code ‘400’
10:29:24 AM: ​
10:29:24 AM: Resolved config
10:29:24 AM: build:
10:29:24 AM: command: CI= npm run build
10:29:24 AM: commandOrigin: ui
10:29:24 AM: environment:
10:29:24 AM: - BASE_URL

You’re using severly outdated Next.js version. Try upgrading to Next.js 13.5+ or 14 along with Next.js Runtime v5.