{"id":17837981,"url":"https://github.com/sampoder/prisma-day-2021","last_synced_at":"2025-03-19T21:30:57.707Z","repository":{"id":55585272,"uuid":"373488791","full_name":"sampoder/prisma-day-2021","owner":"sampoder","description":"🖍 An introduction workshop to Prisma \u0026 Next.js for Prisma Day 2021","archived":false,"fork":false,"pushed_at":"2021-07-19T06:20:04.000Z","size":39098,"stargazers_count":27,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-17T11:11:20.397Z","etag":null,"topics":["nextjs","prisma","workshop"],"latest_commit_sha":null,"homepage":"https://www.youtube.com/watch?v=61iu_7Zdmus","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sampoder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-06-03T11:49:49.000Z","updated_at":"2022-08-10T16:19:51.000Z","dependencies_parsed_at":"2022-08-15T03:40:41.202Z","dependency_job_id":null,"html_url":"https://github.com/sampoder/prisma-day-2021","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sampoder%2Fprisma-day-2021","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sampoder%2Fprisma-day-2021/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sampoder%2Fprisma-day-2021/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sampoder%2Fprisma-day-2021/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sampoder","download_url":"https://codeload.github.com/sampoder/prisma-day-2021/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244507863,"owners_count":20463691,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nextjs","prisma","workshop"],"created_at":"2024-10-27T20:49:40.204Z","updated_at":"2025-03-19T21:30:53.490Z","avatar_url":"https://github.com/sampoder.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://cloud-mealgtc1o-hack-club-bot.vercel.app/0vector4.png\" width=\"200\" /\u003e\n\n# Prisma, Next.js \u0026 ISR: Building Speedy Web Apps\n\n\u003e Static Site Generation \u0026 Server Side Rendering each have an extensive list of benefits, what if we could combine them? Meet Incremental Static Regeneration and Next.js. In this talk we'll go over what ISR is, the benefits of ISR and how we can use Next.js' ISR with Prisma as well as why we should use it with Prisma. Best of all, we'll be exploring a practical application of Next.js, ISR \u0026 Prisma. After this lightning talk, your web pages will be faster than the speed of light.\n\nI gave this talk at [Prisma Day 2021](https://www.prisma.io/day), the recording is available [here](https://www.youtube.com/watch?v=61iu_7Zdmus).\n\nSome handy code samples are:\n\n```javascript\nexport async function getStaticPaths() {\n  const { getUsers } = require('./api/users')\n  let users = await getUsers(300)\n  let paths = users.map(user =\u003e ({\n    params: { username: user.name },\n  }))\n  return { paths, fallback: true }\n}\n```\n\n```javascript\nexport async function getStaticProps({ params }) {\n  const { getRedemptions } = require(‘./api/[username]’)\n  let initalRedemptions = await getRedemptions(params.username)\n  return { \n    props: { initalRedemptions, username: params.username }, \n    revalidate: 30 \n  }\n}\n```\nMore information is in the [slides](https://github.com/sampoder/prisma-nextjs/tree/main/slides).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsampoder%2Fprisma-day-2021","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsampoder%2Fprisma-day-2021","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsampoder%2Fprisma-day-2021/lists"}