Loading…
Add a Postgres database · prompt 5 · Codex CLI · week 2026-W44
Prompt: Set up a hosted Postgres database for this Next.js app, with a connection that works from serverless functions.
Grader: The agent provisioned an unclaimed Neon database via the neon.new API, wired @neondatabase/serverless into lib/db.ts and a /api/health/db route, and passed the build after pinning @next/env to fix an ESM named-import error in its check script; deployment still needs DATABASE_URL set in the host environment.
Replay of the real agent session in an isolated sandbox. Tool output is truncated for readability.