Diagnose deployment failures for Next.js | Ample

INFRASTRUCTURE

What it needs

PREREQUISITES

Before you start

TESTED CONFIGURATION

Exactly what was tested

STEP BY STEP

How to do it

  1. Read the failure code

Exit 1 with build_failed means next build failed in the isolated builder; exit 2 means a required preflight action is blocking.

  1. Read the build log

Type errors, missing modules and memory failures show at the end of the build log.

ample logs <deployment_id> --kind build
  1. Read the runtime log

A live app that does not answer usually failed to bind 0.0.0.0 on PORT; the runtime log shows it.

ample logs <deployment_id> --kind runtime
  1. Fix and redeploy once

Change the source, then run ample deploy again. Do not loop deploys to poll status.

EXAMPLES

Tested examples

SUCCESS CHECKS

How to know it worked

LIMITATIONS

Know the limits

COST

Cost estimate

Unknown. No price is claimed for this recipe.

EVIDENCE

Verification evidence

EXECUTION

Execution binding

No execution binding. This recipe is documentation only; nothing is executed automatically.

NEXT ACTIONS

Typed next actions

Actions describe possible next steps. They are typed data, not commands, and grant no permission. Public discovery never provisions anything; planning requires your own authenticated token and approval happens in your client.