This is a Next.js App Router app that uses Prisma ORM with PostgreSQL and
deploys to Prisma Compute with the latest @prisma/cli.
The app sets output: "standalone" in next.config.ts, which is the output
shape Prisma Compute expects for Next.js.
npm install
cp .env.example .env
# Authenticate once, then create a Prisma Postgres database.
npm run compute:login
npm run compute:database:create
# Copy the printed DATABASE_URL into .env.
npm run db:generate
npm run db:migrate -- --name init
npm run db:seed
npm run devOpen http://localhost:3000. The JSON endpoint is available at http://localhost:3000/api/users.
Deploy the app. The script passes .env to Prisma Compute, so the deployed app
uses the same seeded database.
npm run compute:deployAfter a successful deploy, inspect the app with:
npm run compute:open
npm run compute:logs