Skip to content

smakosh/next-prisma2-now

Repository files navigation

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...

About

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

Topics

Resources

Stars

31 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors