A minimal next app with Prisma 8 and Prisma Composer.
pnpm run dev:composerThis builds the app and starts it with Composer. PostgreSQL projects get a local Prisma Postgres database and apply the contract automatically.
pnpm run deployThe deploy script builds the framework output, provisions Prisma Postgres when selected, applies migrations, and deploys the app to Prisma Compute.
The starter users are inserted idempotently from src/prisma/seed.ts on the first database query through the Composer service binding.
- Contract:
src/prisma/contract.ts - Prisma and Composer config:
prisma.config.ts - Composer app:
module.tsandservice.ts
After changing the contract, run:
pnpm run contract:emitTo use the framework's development server directly, run pnpm run dev. This direct mode requires DATABASE_URL.