Demo of on-demand ISR in Next.js 12.1 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_PEMhttps://github.com/settings/apps/<your-app-name>/installations$ npm run dev
Instantly update content with deploying.
Demo of on-demand ISR in Next.js 12.1 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_PEMhttps://github.com/settings/apps/<your-app-name>/installations$ npm run dev