Demo of On-demand ISR in Next.js 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.
<your-site>/api/webhook
as the Webhook URL.env.local
as GITHUB_WEBHOOK_SECRET
.env.local
as GITHUB_APP_ID
.env.local
as GITHUB_APP_PK_PEM
https://github.com/settings/apps/<your-app-name>/installations
$ bun dev