{"id":51163259,"url":"https://github.com/abrahamgalue/nextjs16-conf-workshop","last_synced_at":"2026-06-26T16:01:52.495Z","repository":{"id":359802033,"uuid":"1091141257","full_name":"abrahamgalue/nextjs16-conf-workshop","owner":"abrahamgalue","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-23T13:52:41.000Z","size":143,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-23T15:26:08.622Z","etag":null,"topics":["nextjs","react","vercel"],"latest_commit_sha":null,"homepage":"https://nextjs16-conf-workshop-abrahamgalue.vercel.app","language":"TypeScript","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/abrahamgalue.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-06T15:59:51.000Z","updated_at":"2026-05-23T13:52:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/abrahamgalue/nextjs16-conf-workshop","commit_stats":null,"previous_names":["abrahamgalue/nextjs16-conf-workshop"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/abrahamgalue/nextjs16-conf-workshop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrahamgalue%2Fnextjs16-conf-workshop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrahamgalue%2Fnextjs16-conf-workshop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrahamgalue%2Fnextjs16-conf-workshop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrahamgalue%2Fnextjs16-conf-workshop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abrahamgalue","download_url":"https://codeload.github.com/abrahamgalue/nextjs16-conf-workshop/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abrahamgalue%2Fnextjs16-conf-workshop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34823788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-26T02:00:06.560Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","react","vercel"],"created_at":"2026-06-26T16:01:51.901Z","updated_at":"2026-06-26T16:01:52.485Z","avatar_url":"https://github.com/abrahamgalue.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Next.js 16 + Cache Components Migration Workshop\n\nWelcome to the Next.js 16 + Cache Components workshop! Learn how to migrate from Next.js 15 to Next.js 16's new caching features with cache components.\n\n## Prerequisites\n\n- Node.js 18+ installed\n- Basic knowledge of Next.js App Router\n- Understanding of React Server Components\n\n## Getting Started\n\n```bash\n# Install dependencies\npnpm install\n\n# Run development server\npnpm dev\n\n# Visit http://localhost:3000\n```\n\n## Current Implementation (Next.js 15)\n\nThe blog application currently uses:\n- `export const dynamic = 'force-dynamic'` for the blog page\n- `export const dynamic = 'force-static'` for the homepage\n- Mocked data with simulated API delays\n\nCheck the console to see API calls being logged.\n\n## Migration Tasks\n\n### Task 1: Enable Next.js 16 Features\n\nUpdate to Next.js 16 and enable new caching features.\n\n1. Update `package.json`:\n```json\n\"next\": \"^16.0.0\"\n```\n\n2. Configure `next.config.ts`:\n```typescript\nconst nextConfig = {\n  cacheComponents: true,\n};\n```\n\n3. Run `pnpm install`\n\n### Task 2: Home page\n\nMigrate home page to use [`\"use cache\"`](https://nextjs.org/docs/app/api-reference/directives/use-cache) directive. Remember to keep the original [revalidation time](https://nextjs.org/docs/app/api-reference/functions/cacheLife) of 60 seconds.\n\n### Task 3: Blog page\n\nMigrate the blog page to use `\"use cache\"`. Currently the entire page is dynamic because results are dynamic. Find a way of making the categories and layout static while keeping the posts dynamic.\n\n### Task 4: Blog post page\n\nCreate a fully static blog post page that uses [`cacheTag`](https://nextjs.org/docs/app/api-reference/functions/cacheTag) to set a tag with the blog post id.\n\n### Task 5: Revalidate the cache\n\nCreate a secured route to revalidate the cache of a given tag using [`revalidateTag`](https://nextjs.org/docs/app/api-reference/functions/revalidateTag).\n\n### Task 6: Add a dynamic featured posts section to blog post page\n\nAdd a dynamic section to the end of the blog post page to show the featured posts.\n\n## Bonus Tasks\n\n- [X] Show the active category in the `category-filter` component.\n- [X] Create a custom cache profile in `next.config.ts` and use it.\n- [X] Deploy the application and verify everything works.\n\n## Resources\n\n- [cacheComponents](https://nextjs.org/docs/app/api-reference/config/next-config-js/cacheComponents)\n- [\"use cache\" Directive](https://nextjs.org/docs/app/api-reference/directives/use-cache)\n- [cacheLife Function](https://nextjs.org/docs/app/api-reference/functions/cacheLife)\n- [cacheTag Function](https://nextjs.org/docs/app/api-reference/functions/cacheTag)\n\n---\n\n**Happy coding!** 🚀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabrahamgalue%2Fnextjs16-conf-workshop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabrahamgalue%2Fnextjs16-conf-workshop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabrahamgalue%2Fnextjs16-conf-workshop/lists"}