{"id":13479283,"url":"https://github.com/vercel/on-demand-isr","last_synced_at":"2025-05-16T16:06:08.099Z","repository":{"id":37441988,"uuid":"459783891","full_name":"vercel/on-demand-isr","owner":"vercel","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-08T19:12:27.000Z","size":516,"stargazers_count":779,"open_issues_count":1630,"forks_count":62,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-04T03:07:22.710Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"on-demand-isr.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vercel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2022-02-15T23:27:10.000Z","updated_at":"2024-11-02T16:14:16.000Z","dependencies_parsed_at":"2023-11-15T03:30:08.324Z","dependency_job_id":"a33c95e7-ad03-4442-8bfa-2df8b83adffa","html_url":"https://github.com/vercel/on-demand-isr","commit_stats":{"total_commits":76,"total_committers":7,"mean_commits":"10.857142857142858","dds":"0.11842105263157898","last_synced_commit":"3db1162ccfa697f8f8a28d831b46c313fa888d5c"},"previous_names":["vercel/on-demand-isr","leerob/on-demand-isr"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel%2Fon-demand-isr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel%2Fon-demand-isr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel%2Fon-demand-isr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vercel%2Fon-demand-isr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vercel","download_url":"https://codeload.github.com/vercel/on-demand-isr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254564124,"owners_count":22092122,"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":[],"created_at":"2024-07-31T16:02:12.783Z","updated_at":"2025-05-16T16:06:08.037Z","avatar_url":"https://github.com/vercel.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2Fvercel%2Fon-demand-isr\u0026env=GITHUB_WEBHOOK_SECRET,GITHUB_APP_ID,GITHUB_APP_PK_PEM\u0026envDescription=API%20keys%20needed%20to%20connect%20to%20the%20GitHub%20Application.\u0026envLink=https%3A%2F%2Fgithub.com%2Fvercel%2Fon-demand-isr\u0026demo-title=On-Demand%20ISR\u0026demo-description=Demo%20of%20on-demand%20ISR%20in%20Next.js%2012.1%20using%20GitHub%20Issues.\u0026demo-url=https%3A%2F%2Fon-demand-isr.vercel.app)\n\n# On-Demand Incremental Static Regeneration\n\nDemo of On-demand ISR in [Next.js](https://nextjs.org/docs/app/building-your-application/data-fetching/fetching-caching-and-revalidating#revalidating-data) using GitHub Issues. When a new issue is created, a webhook from a GitHub App _pushes_ new changes to the deployed application to regenerate the static page.\n\n## Setup\n\n1. Create a new [GitHub App](https://github.com/settings/apps/new)\n   1. Provide the URL of your deployed application for Homepage URL\n   1. Ensure Webhook \"Active\" is checked\n   1. Add `\u003cyour-site\u003e/api/webhook` as the Webhook URL\n   1. Create a Webhook secret and add it to `.env.local` as `GITHUB_WEBHOOK_SECRET`\n   1. Give \"Read Only\" access to Issues\n   1. Subscribe to \"Issues\" events\n1. Add the App ID to `.env.local` as `GITHUB_APP_ID`\n1. Generate a private key and add it to `.env.local` as `GITHUB_APP_PK_PEM`\n1. Install the newly created GitHub App for your repo\n1. `https://github.com/settings/apps/\u003cyour-app-name\u003e/installations`\n\n## Running Locally\n\n```bash\n$ bun dev\n```\n\n## Learn More\n\n- [Read the documentation](https://nextjs.org/docs/app/building-your-application/data-fetching/fetching-caching-and-revalidating#revalidating-data)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvercel%2Fon-demand-isr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvercel%2Fon-demand-isr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvercel%2Fon-demand-isr/lists"}