Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/smakosh/next-prisma2-now

Next static and dynamic SSR + Prisma 2 + Postgres + Auth0 + Vercel
https://github.com/smakosh/next-prisma2-now

auth0 nextjs now postgresql prisma2 vercel

Last synced: 12 days ago
JSON representation

Next static and dynamic SSR + Prisma 2 + Postgres + Auth0 + Vercel

Awesome Lists containing this project

README

        

## Next + Prisma 2 + Auth0 + Vercel

Example using Next and Prisma

1. on `index.tsx`, I'm using `getStaticProps` to fetch posts
2. on `posts.tsx`, I'm using `getServerSideProps` to fetch posts
3. on `api/posts.ts`, that's a serverless function that create a new post using Prisma client

To be documented...