Jolg42 / repro_nextjs_neon_driveradapter_issue

Home Page:https://github.com/prisma/prisma/issues/22469

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reproduction of Prisma Neon driver adapter issue on Next.js

Steps

  1. Spin up postgres with a neon proxy for local testing: docker compose up -d
  2. Install deps cd nextjs && npm install
  3. Migrate DATABASE_URL=postgres://postgres:postgres@localhost:5432/db npm run migrate
  4. Add a record in the database on the Article table
  5. Start nextjs dev server DATABASE_URL=postgres://postgres:postgres@localhost:5432/db npm run dev
  6. Call the nextjs route POST http://localhost:3000/api/prisma
  7. See error in console

About

https://github.com/prisma/prisma/issues/22469


Languages

Language:JavaScript 63.1%Language:TypeScript 36.9%