Next static and dynamic SSR + Prisma 2 + Postgres + Auth0 + Vercel
Example using Next and Prisma
index.tsx
, I'm using getStaticProps
to fetch postsposts.tsx
, I'm using getServerSideProps
to fetch postsapi/posts.ts
, that's a serverless function that create a new post using Prisma clientTo be documented...