Outdated dependencies in Next.js
Update the framework and the packages your routes import first. Rebuild and click through login, checkout, and a write to the database.
Fix for Next.js
Update the framework and the packages your routes import first. Rebuild and click through login, checkout, and a write to the database. Do not merge an audit fix that you have not run.
Commit the lockfile. In CI, install with npm ci so the build uses that file.
The five-minute check, the other platforms, and the agent prompt are on the full guide. More Next.js fixes are on the Next.js page.