Next.js
Portal
- Create project → connect Git repo with a Next.js app.
- Auto-detect usually sets build
npm run build / start npm run start. - Set env vars (
DATABASE_URL, NEXTAUTH_SECRET, etc.). - Deploy → wait for healthy.
CLI
deployon init --connect --create
deployon deploy --push --wait
Tips
- Ensure
package.json has build and start scripts. - For standalone output, configure Next accordingly and set the correct start command.
- Mark build-time
NEXT_PUBLIC_* vars as build args when required at build.