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