Next.js blurs the lines between client and server. It supports pre-rendering pages at build time (SSG) or request time (SSR). Prisma is the perfect companion if you need to work with a database in a Next.js app. You can decide whether to access your database with Prisma at build time (getStaticProps), at request time (getServersideProps), using API routes, or by entirely separating the backend out
![Next.js Database with Prisma | Next-Generation ORM for SQL Databases](https://cdn-ak-scissors.b.st-hatena.com/image/square/c286d65ee489253150fc32fce3d1d1f05acef23c/height=288;version=1;width=512/https%3A%2F%2Fcdn.sanity.io%2Fimages%2Fp2zxqf70%2Fproduction%2F4a1804a0f5588e2673b26e1416a6ae745204148f-900x473.png)