Examples

Next.js + Database

Deploy a full-stack Next.js app with SQLite

Prompt

Prompt

Build a Next.js app with a notes feature. Use server actions for the backend and connect to a SQLite database on Ink for persistence. Include create, read, update, and delete operations. Deploy to Ink.

What happens

  1. Agent provisions a SQLite database via create_resource
  2. Builds a Next.js app with server actions
  3. Sets DATABASE_URL and DATABASE_AUTH_TOKEN as environment variables
  4. Deploys the app connected to the database

Services created

ServiceType
Next.js appService
SQLite databaseResource

On this page