A demo showing how to leverage next.js incremental generation
This is an example blog app showing how to work with Prisma in Next.js.
The blog compares the two rendering approaches that Next.js supports – static generation with incremental static re-generation and server-side rendering for post pages.
Clone the repo and install the dependencies:
# with npm
npm i
docker-compose up -d
Create prisma/.env
touch prisma/.env
And add the following to the file
DATABASE_URL="postgresql://test-user:test-password@localhost:5432/my-blog?schema=public"
npx prisma db push --preview-feature
# with npm
npm run dev
MIT